diff --git a/comptime.sh b/comptime.sh index 1172061fe..ce771f631 100755 --- a/comptime.sh +++ b/comptime.sh @@ -17,7 +17,7 @@ EOF versiongit() { gitbranch="$(git rev-parse --abbrev-ref HEAD)" - gitversion="$(git show --pretty=format:'%h %s' -s HEAD)" + gitversion="$(git rev-parse HEAD | cut -c -8)" version "$gitbranch" "$gitversion"; exit 0 } @@ -42,4 +42,3 @@ compversion() { [ -f "$path/comptime.c" ] && compversion "$@" exit 2 -