summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-06-14 01:17:57 +0200
committerJonas Smedegaard <dr@jones.dk>2008-06-14 01:17:57 +0200
commit28564376b810bd3040256827dea6c8ec0ea03a70 (patch)
tree985ab7e526cfa53e4034cd0f90dfff129f8c9f2f
parent52f169ea3440eac1df07bca4ab9871840ce8f8af (diff)
Recursively expand currentbranch, as it may change inside same build target.
-rw-r--r--make/git.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/git.mk b/make/git.mk
index 332d82f..f8436f8 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: