diff options
Diffstat (limited to 'git-version.sh')
-rwxr-xr-x | git-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-version.sh b/git-version.sh index 8fe051501..ff0eb6cdd 100755 --- a/git-version.sh +++ b/git-version.sh @@ -30,7 +30,7 @@ esac full_date="$month $day$suffix, $year" sha="$(git describe --abbrev=1)" -if git describe --all --match trunk > /dev/null 2> /dev/null; then +if [ "$(git branch --show-current)" = "trunk" ]; then sha=$(echo "$sha" | sed 's/-g[^-]*$//') fi version="$sha" |