summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: