platformtest.sh: Only show latest commit

Only show latest GIT commuit ID as version number,
even when the last commit has been a merge.
This commit is contained in:
Alexander Barton 2009-11-15 18:25:36 +01:00
parent 4f1b5400e9
commit 513a75c919
1 changed files with 1 additions and 1 deletions

View File

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