summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-06-14 01:13:43 +0200
committerJonas Smedegaard <dr@jones.dk>2008-06-14 01:13:43 +0200
commit52f169ea3440eac1df07bca4ab9871840ce8f8af (patch)
tree0901f64ca271bc3f02b6c00f689e0db5b21a9bf4 /make
parent2f1163e14125ab7e9733473f735f221eb9d1aaeb (diff)
Tighten currentbranch match.
Diffstat (limited to 'make')
-rw-r--r--make/git.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/git.mk b/make/git.mk
index b870f1b..332d82f 100644
--- a/make/git.mk
+++ b/make/git.mk
@@ -7,7 +7,7 @@ branches = $(master)
# local name of origin
origin = origin
-currentbranch := $(shell git branch | grep \* | awk '{ print $2 }')
+currentbranch := $(shell git branch | grep ^\* | awk '{ print $2 }')
noncurrentbranches = $(filter-out $(currentbranch),$(branches))
update: