summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generateVersion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generateVersion.sh b/scripts/generateVersion.sh
index b0993709..6b1afb7b 100755
--- a/scripts/generateVersion.sh
+++ b/scripts/generateVersion.sh
@@ -2,7 +2,7 @@
cp -fr ./src/version.h.in ./src/version.h
HASH=$(git rev-parse HEAD)
-BRANCH=$(git rev-parse --abbrev-ref HEAD)
+BRANCH=$(git branch --show-current)
MESSAGE=$(git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1 | sed -e 's/#//g' -e 's/\"//g')
DATE=$(git show ${GIT_COMMIT_HASH} --no-patch --format=%cd --date=local)
DIRTY=$(git diff-index --quiet HEAD -- || echo dirty)