1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-02-14 16:20:02 +00:00

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

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