aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install7
1 files changed, 7 insertions, 0 deletions
diff --git a/install b/install
index 6d13e1338..dc0266d92 100644
--- a/install
+++ b/install
@@ -76,6 +76,13 @@ def git
s = `xcrun -find git 2>/dev/null`.chomp
s if $? and not s.empty?
end
+
+ # 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+)/
+ return if $1 < "1.7.10"
+
+ @git
end
# The block form of Dir.chdir fails later if Dir.CWD doesn't exist which I