diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-27 15:41:54 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-27 15:41:54 +0100 |
commit | 4dfac863a5b8b310133e1ee5e9186f7604b0a33f (patch) | |
tree | b82c0813c3f7abd48c712c1a23112eff2f27474d | |
parent | c74fe5726259c508a541eb5b97ca1def7733a5c9 (diff) |
version.sh: replace -g with -git-
git describe prefixes the sha1 commit hash with -g, which is exactly what
we're after. this change gets rid of the confusing "g" in the commit hash
and allows tag names that include "-".
-rwxr-xr-x | scripts/version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/version.sh b/scripts/version.sh index f3948bc..2de4c21 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -9,7 +9,7 @@ if test -d "${GIT_DIR}" ; then if test "x$?" != x0 ; then sed 's/$/-git/' < VERSION else - printf "%s\n" "$gitstr" | sed -e 's/-/-git-/' + printf "%s\n" "$gitstr" | sed -e 's/-g/-git-/' fi else sed 's/$/-git/' < VERSION |