diff --git a/version/version.sh b/version/version.sh index 3315ec0dc..023bf9cc3 100755 --- a/version/version.sh +++ b/version/version.sh @@ -33,7 +33,7 @@ case $# in # that git displays the full commit hash. git_hash=$(git describe --always --dirty --exclude '*' --abbrev=200) # The number of extra commits between the release base to git_hash. - change_count=$(git rev-list ${base_git_hash}..HEAD | wc -l) + change_count=$(git rev-list ${base_git_hash}..HEAD | wc -l | sed 's/ *//') ;; 6) # Test mode: rather than run git commands and whatnot, take in