summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git/git_proxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/git/git_proxy.rb')
-rw-r--r--lib/bundler/source/git/git_proxy.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index 9b0e95d18c..9c32501d40 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -123,7 +123,11 @@ module Bundler
git_retry %(fetch --force --quiet --tags "#{path}")
git "reset --hard #{@revision}"
- git_retry "submodule update --init --recursive" if submodules
+ if submodules
+ git_retry "submodule update --init --recursive"
+ else
+ git_retry "submodule deinit --all"
+ end
end
end