Meta/V: deal with the initial bootstrapping case a bit better
There could be no git installed initially from the integration branch being probed.
Junio C Hamano committed
Apr 25, 2009 at 23:39 UTC
4037b51ef434df83b7389f486e247064f25f5f78
1 file changed
+4
V
+4
index e4d15c9a2e..2cbab58be4 100755
--- a/V
+++ b/V
@@ -42,6 +42,10 @@ do
then
in= out=
installed=${dirty:+" (with changes)"}
+ elif test -z "$version"
+ then
+ in="[41;37m" out="[m"
+ installed=" none"
else
installed=$(git describe $version)
case "$dirty" in