mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix to exclude forward slashes from git info during 'make rpm'
Fixes #12558
This commit is contained in:
parent
3bd71d0619
commit
af1f462ba0
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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 = ''
|
||||
|
|
Loading…
Reference in a new issue