aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMisty De Meo2013-07-09 18:35:51 -0700
committerMisty De Meo2013-07-09 18:35:51 -0700
commit3e7f9aebb997de4d1e54ecebd1448139a6d8939a (patch)
tree7ad3a4f6cd04a5d4bd7dcf070b74be8d58c03727 /install
parent7583cc83dd631f12fba14e57445958fb752b037f (diff)
downloadhomebrew-3e7f9aebb997de4d1e54ecebd1448139a6d8939a.tar.bz2
Don't bother checking git version if none found
Diffstat (limited to 'install')
-rw-r--r--install1
1 files changed, 1 insertions, 0 deletions
diff --git a/install b/install
index a52715de5..db01d6e6f 100644
--- a/install
+++ b/install
@@ -77,6 +77,7 @@ def git
s if $? and not s.empty?
end
+ return unless @git
# Github only supports HTTPS fetches on 1.7.10 or later:
# https://help.github.com/articles/https-cloning-errors
`#{@git} --version` =~ /git version (\d\.\d+\.\d+)/