diff options
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -181,16 +181,16 @@ module Bundler if err.include?("Could not find remote branch") raise MissingGitRevisionError.new(command_with_no_credentials, nil, explicit_ref, credential_filtered_uri) - elsif err.include?("dumb http transport does not support shallow capabilities") idx = command.index("--depth") if idx command.delete_at(idx) command.delete_at(idx) err += "Retrying without --depth argument." end raise GitCommandError.new(command_with_no_credentials, path, err) - else - raise GitCommandError.new(command_with_no_credentials, path, err) end end end |