configure: get latest git rev from HEAD not from master.
In tags there's no 'master' branch so use HEAD instead.
This commit is contained in:
parent
0fc6bc0d5c
commit
ae2eea8937
2
configure
vendored
2
configure
vendored
@ -193,7 +193,7 @@ echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
|
||||
echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK
|
||||
|
||||
if [ -d .git ]; then
|
||||
_gitrev=$(git rev-parse --short master)
|
||||
_gitrev=$(git rev-parse --short HEAD)
|
||||
echo "CPPFLAGS += -DXBPS_GIT=\\\"${_gitrev}\\\"" >>$CONFIG_MK
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user