]> arthur.barton.de Git - ngircd-alex.git/commitdiff
platformtest.sh: Only show latest commit
authorAlexander Barton <alex@barton.de>
Sun, 15 Nov 2009 17:25:36 +0000 (18:25 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 15 Nov 2009 17:25:36 +0000 (18:25 +0100)
Only show latest GIT commuit ID as version number,
even when the last commit has been a merge.

contrib/platformtest.sh

index aee7f2996f509b72a98ddaf0b6d3ab6f68e7dfa1..0a518b8a7df0ad70d6eea687822c56cb3c7df2fa 100755 (executable)
@@ -105,7 +105,7 @@ fi
 # Get ngIRCd version information
 if [ -d ".git" ]; then
        VERSION=`git log --abbrev-commit --pretty=oneline HEAD~1.. \
-        | cut -d' ' -f1 | tr -d '.'`
+        | head -1 | cut -d' ' -f1 | tr -d '.'`
 elif [ -r "Makefile" ]; then
        eval $(grep "^VERSION = " Makefile | sed -e 's/ //g')
 fi