V: use the describe --long format
This will hopefully help catching a mistake to tag different commits with the same tag again.
Junio C Hamano committed
Nov 23, 2023 at 13:28 UTC
87abcd426a0386f348b360150d26d00b2075f2de
1 file changed
+2
-2
V
+2
-2
@@ -55,7 +55,7 @@ do
55
in="[41;37m" out="[m"
56
installed=" none"
57
else
58
- installed=$(git describe $version)
58
+ installed=$(git describe --long $version)
59
case "$dirty" in
60
'')
61
;;
@@ -65,7 +65,7 @@ do
65
in="[41;37m" out="[m" installed=" $installed"
66
fi
67
output="$output${output:+$LF}"
68
- output="$output$in$v$out$installed $(git describe refs/heads/$v)"
68
+ output="$output$in$v$out$installed $(git describe --long refs/heads/$v)"
69
done
70
71
echo "$output"