From 4dfac863a5b8b310133e1ee5e9186f7604b0a33f Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 27 Sep 2020 15:41:54 +0100 Subject: [PATCH] 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 "-". --- scripts/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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