diff --git a/configure b/configure index 51d314c6..fbeaff5a 100755 --- a/configure +++ b/configure @@ -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