aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgen-id.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/gen-id.sh b/gen-id.sh
index 02be21a4..c8f89793 100755
--- a/gen-id.sh
+++ b/gen-id.sh
@@ -6,12 +6,10 @@
#
if test -n "$GIT_DIR" -o -d ../.git -o -f ../.git; then
- ver="$(git rev-parse HEAD | cut -c1-8)"
+ ver="$(git describe | cut -d- -f3-)"
if test -n "$ver"; then
if test -n "$(git diff-index --name-only HEAD)"; then
- ver='g*'"$ver"
- else
- ver='g-'"$ver"
+ ver="${ver}"\*
fi
fi
fi