summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEllen Keal <[email protected]>2024-05-13 16:49:56 -0500
committergit <[email protected]>2024-05-22 06:01:51 +0000
commit5b9b6b4d2b58dc880ddd0a9d45bddc59aee43deb ()
tree2d98bd79b5e80363c5c1946fcd6e064b6343cae4
parentec9de0c4717b2942edba560b510a170f812a2f2c (diff)
[rubygems/rubygems] move git clone depth error handling to else branch
https://.com/rubygems/rubygems/commit/022eb473f8
-rw-r--r--lib/bundler/source/git/git_proxy.rb6
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