From: Junio C Hamano Date: Thu, 29 Sep 2011 01:12:00 +0000 (-0700) Subject: Meta/Make: allow version of git to be overridden X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81a1b6dfce053dcb5f6af27e38195068e14dacc3;p=thirdparty%2Fgit.git Meta/Make: allow version of git to be overridden It gets harder than necessary to bootstrap otherwise --- diff --git a/Make b/Make index 93ba9ae33f..836a581a25 100755 --- 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=: