about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2009-11-15 18:25:36 +0100
committerAlexander Barton <alex@barton.de>2009-11-15 18:25:36 +0100
commit513a75c9195f480b25a6bbd605a00ef066636211 (patch)
tree5e03a69ec471e6d8352d9a7d60a26b5c4584402f
parent4f1b5400e90f2e5107eda8e4f4f8e0b4e2beb14d (diff)
downloadngircd-513a75c9195f480b25a6bbd605a00ef066636211.tar.gz
ngircd-513a75c9195f480b25a6bbd605a00ef066636211.zip
platformtest.sh: Only show latest commit
Only show latest GIT commuit ID as version number,
even when the last commit has been a merge.
-rwxr-xr-xcontrib/platformtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index aee7f299..0a518b8a 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