]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/V: deal with the initial bootstrapping case a bit better
authorJunio C Hamano <gitster@pobox.com>
Sun, 26 Apr 2009 06:39:24 +0000 (23:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Apr 2009 06:39:24 +0000 (23:39 -0700)
There could be no git installed initially from the integration branch
being probed.

V

diff --git a/V b/V
index e4d15c9a2ebe42df45b36c61d85c4eed82ade565..2cbab58be4a68152f5057ee82bb1b0906b9c8638 100755 (executable)
--- a/V
+++ b/V
@@ -42,6 +42,10 @@ do
        then
                in= out=
                installed=${dirty:+" (with changes)"}
+       elif test -z "$version"
+       then
+               in="\e[41;37m" out="\e[m"
+               installed="     none"
        else
                installed=$(git describe $version)
                case "$dirty" in