mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
V: use the describe --long format
This will hopefully help catching a mistake to tag different commits with the same tag again.
This commit is contained in:
parent
ffc30cf220
commit
87abcd426a
4
V
4
V
@ -55,7 +55,7 @@ do
|
||||
in="[41;37m" out="[m"
|
||||
installed=" none"
|
||||
else
|
||||
installed=$(git describe $version)
|
||||
installed=$(git describe --long $version)
|
||||
case "$dirty" in
|
||||
'')
|
||||
;;
|
||||
@ -65,7 +65,7 @@ do
|
||||
in="[41;37m" out="[m" installed=" $installed"
|
||||
fi
|
||||
output="$output${output:+$LF}"
|
||||
output="$output$in$v$out$installed $(git describe refs/heads/$v)"
|
||||
output="$output$in$v$out$installed $(git describe --long refs/heads/$v)"
|
||||
done
|
||||
|
||||
echo "$output"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user