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:
Juan RP 2013-09-26 11:33:07 +02:00
parent 0fc6bc0d5c
commit ae2eea8937

2
configure vendored
View File

@ -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