summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-09-30 09:32:09 -0400
committerJames Cammarata <jimi@sngx.net>2015-09-30 09:32:09 -0400
commitaf1f462ba03327e75b386edf655037a417b31ba5 (patch)
tree3d3921326682d96348016ce5f2b37c6894f45e2e /Makefile
parent3bd71d06195cdce01a85257545723e221f9c9698 (diff)
downloadansible-af1f462ba03327e75b386edf655037a417b31ba5.tar.gz
Fix to exclude forward slashes from git info during 'make rpm'
Fixes #12558
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 508be405e9..fa334bf1b0 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ RELEASE := $(shell cat VERSION | cut -f2 -d' ')
ifneq ($(shell which git),)
GIT_DATE := $(shell git log -n 1 --format="%ai")
GIT_HASH := $(shell git log -n 1 --format="%h")
-GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.]//g')
+GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.\/]//g')
GITINFO = .$(GIT_HASH).$(GIT_BRANCH)
else
GITINFO = ''