commit 513a75c9195f480b25a6bbd605a00ef066636211 from: Alexander Barton date: Sun Nov 15 17:25:36 2009 UTC platformtest.sh: Only show latest commit Only show latest GIT commuit ID as version number, even when the last commit has been a merge. commit - 4f1b5400e90f2e5107eda8e4f4f8e0b4e2beb14d commit + 513a75c9195f480b25a6bbd605a00ef066636211 blob - aee7f2996f509b72a98ddaf0b6d3ab6f68e7dfa1 blob + 0a518b8a7df0ad70d6eea687822c56cb3c7df2fa --- contrib/platformtest.sh +++ contrib/platformtest.sh @@ -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