Alexander Barton : platformtest.sh: Only show latest commit
Module: ngircd.git Branch: master Commit: 513a75c9195f480b25a6bbd605a00ef066636211 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=513a75c91... Author: Alexander Barton <alex@barton.de> Date: Sun Nov 15 18:25:36 2009 +0100 platformtest.sh: Only show latest commit Only show latest GIT commuit ID as version number, even when the last commit has been a merge. --- contrib/platformtest.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index aee7f29..0a518b8 100755 --- a/contrib/platformtest.sh +++ b/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
Teilnehmer (1)
-
alex@arthur.barton.de