From 513a75c9195f480b25a6bbd605a00ef066636211 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 15 Nov 2009 18:25:36 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2