summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-03 07:52:58 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-09 09:03:06 +0100
commit7f12886f7d56bbab752560341616b2a8ff9c58aa (patch)
tree4ca89843164936026d5fb465965c520fdc3e93f7
parent7ea02942dcfc7f8eecaf71c817adb501905f7f12 (diff)
downloaddocker-7f12886f7d56bbab752560341616b2a8ff9c58aa.tar.gz
Also strip data before the last forward slash
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fcb592c..74b70b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed -e 's/master/latest/g' -e 's/kolab-//g')
+BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed -r -e 's/master/latest/g' -e 's/kolab-//g' -e 's/.*\///g')
NOCACHE := $(shell test 0$(NOCACHE) -eq 0 || echo "--no-cache")
NORM := $(shell test 0$(NORM) -eq 0 && echo "--rm")