]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Make: allow version of git to be overridden
authorJunio C Hamano <gitster@pobox.com>
Thu, 29 Sep 2011 01:12:00 +0000 (18:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Sep 2011 01:12:00 +0000 (18:12 -0700)
It gets harder than necessary to bootstrap otherwise

Make

diff --git a/Make b/Make
index 93ba9ae33f1c83a31deb30ad0b763d2d081f7de4..836a581a253ed36242668e44f8a05bc5b41209f3 100755 (executable)
--- a/Make
+++ b/Make
@@ -1,12 +1,15 @@
 #!/bin/sh
 
-case "$(git version 2>/dev/null)" in
-"git version"*)
-       GIT=git ;;
-*)
-       echo >&2 "No git to bootstrap"
-       exit 1 ;;
-esac
+if test -z "$GIT"
+then
+       case "$(git version 2>/dev/null)" in
+       "git version"*)
+               GIT=git ;;
+       *)
+               echo >&2 "No git to bootstrap"
+               exit 1 ;;
+       esac
+fi
 
 inst_prefix=$(
        IFS=: