From 87abcd426a0386f348b360150d26d00b2075f2de Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 23 Nov 2023 13:28:43 +0900 Subject: [PATCH] V: use the describe --long format This will hopefully help catching a mistake to tag different commits with the same tag again. --- V | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V b/V index d13d960e3c..8dee018a23 100755 --- a/V +++ b/V @@ -55,7 +55,7 @@ do in="" out="" installed=" none" else - installed=$(git describe $version) + installed=$(git describe --long $version) case "$dirty" in '') ;; @@ -65,7 +65,7 @@ do in="" out="" 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"