diff options
| author | Alexander Barton <alex@barton.de> | 2009-11-15 18:25:36 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2009-11-15 18:25:36 +0100 |
| commit | 513a75c9195f480b25a6bbd605a00ef066636211 (patch) | |
| tree | 5e03a69ec471e6d8352d9a7d60a26b5c4584402f /contrib/platformtest.sh | |
| parent | 4f1b5400e90f2e5107eda8e4f4f8e0b4e2beb14d (diff) | |
| download | ngircd-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.
Diffstat (limited to 'contrib/platformtest.sh')
| -rwxr-xr-x | contrib/platformtest.sh | 2 |
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 |