summaryrefslogtreecommitdiff
path: root/make/git.mk
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-08-20 18:30:57 +0200
committerJonas Smedegaard <dr@jones.dk>2008-08-20 18:30:57 +0200
commit3e354c881bdb39f8b451a78c98a981f50c7a00bf (patch)
tree3e1b40dcb9f8e6795b2cde69102b5f5bd26e0df0 /make/git.mk
parentf680214fd0302dfe1328b69ab356d3665a18975d (diff)
Fix branch checkout in git.mk.
Diffstat (limited to 'make/git.mk')
-rw-r--r--make/git.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/make/git.mk b/make/git.mk
index 5595057..2c8c827 100644
--- a/make/git.mk
+++ b/make/git.mk
@@ -7,6 +7,7 @@ branches = $(master)
# local name of origin
origin = origin
+allbranches = $(sort $(master) $(branches))
currentbranch := $(shell git branch | grep ^\* | awk '{ print $2 }')
noncurrentbranches := $(filter-out $(currentbranch),$(branches))
@@ -15,15 +16,15 @@ localbranches := $(shell git branch | perl -ne 'm,^.\s+([a-z_]\S+)$$, && print "
update:
git fetch $(origin)
- for branch in $(filter-out $(localbranches),$(branches)); do \
- git branch $$branch $(origin)/$(branch); \
+ for branch in $(filter-out $(localbranches),$(allbranches)); do \
+ git branch $$branch $(origin)/$$branch; \
done
- git checkout $(master)
- git pull $(origin)
for branch in $(noncurrentbranches); do \
- git checkout $(branch); \
+ git checkout $$branch; \
git pull $(origin); \
done
+ git checkout $(master)
+ git pull $(origin)
init:
git init
2d577852327a9@localhost.localdomain/killed0
-rw-r--r--tags/90/48/44dc381f216f73dea8c2d577852327a9@localhost.localdomain/unread0
-rw-r--r--tags/90/48/4B9C6EFC.60104@czol.eu/debian0
-rw-r--r--tags/90/48/4D746914.4050307@petit-huguenin.org/debian0
-rw-r--r--tags/90/48/4D746914.4050307@petit-huguenin.org/replied0
-rw-r--r--tags/90/48/50B52B6A.5000708@drcomp.erfurt.thur.de/debian0
-rw-r--r--tags/90/48/63b3a45b72941_3f61fff9b183125874@godard.mail/debian0
-rw-r--r--tags/90/48/63b3a45b72941_3f61fff9b183125874@godard.mail/inbox0
-rw-r--r--tags/90/48/63b3a45b72941_3f61fff9b183125874@godard.mail/killed0
-rw-r--r--tags/90/48/63b3a45b72941_3f61fff9b183125874@godard.mail/unread0
-rw-r--r--tags/90/48/852916334.1034850.1568406567247@mail.yahoo.com/debian0
-rw-r--r--tags/90/48/907caf9b-a29c-a93a-d51a-9f8b9997cb49@microjoe.org/debian0
-rw-r--r--tags/90/48/907caf9b-a29c-a93a-d51a-9f8b9997cb49@microjoe.org/signed0
-rw-r--r--tags/90/48/907caf9b-a29c-a93a-d51a-9f8b9997cb49@microjoe.org/unread0
-rw-r--r--tags/90/48/E1dfgqD-0007t4-Vc@oooprodaem.com/attachment0
-rw-r--r--tags/90/48/E1dfgqD-0007t4-Vc@oooprodaem.com/inbox0
-rw-r--r--tags/90/48/E1dfgqD-0007t4-Vc@oooprodaem.com/old0
-rw-r--r--tags/90/48/Pine.LNX.4.44.0209211500080.3557-100000@auryn.jones.dk/debian0
-rw-r--r--tags/90/48/Pine.LNX.4.44.0209211500080.3557-100000@auryn.jones.dk/inbox0
-rw-r--r--tags/90/48/Pine.LNX.4.44.0209211500080.3557-100000@auryn.jones.dk/old0
31 files changed, 0 insertions, 0 deletions