aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-06-24 20:05:57 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-06-27 11:06:19 -0500
commit31ad5f7c6b853c3d391749128f81bde7d904442a (patch)
tree3200a7be31a08f8b8c6876ef6f06c70e88bc0ebc /lib/bundler/source
parent7d9146bae10a21cb195c8dc376fe54bee87a8d7a (diff)
downloadbundler-31ad5f7c6b853c3d391749128f81bde7d904442a.tar.gz
[GitProxy] Only try and submodule deinit on git 2.9.0+
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git/git_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index 9c32501d..84d7fee6 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -125,7 +125,7 @@ module Bundler
if submodules
git_retry "submodule update --init --recursive"
- else
+ elsif Gem::Version.create(version) >= Gem::Version.create("2.9.0")
git_retry "submodule deinit --all"
end
end