aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-11-27 15:57:45 -0600
committergit <svn-admin@ruby-lang.org>2023-11-30 03:41:15 +0000
commit62e2e1da920d15e755f1826b3703ca81366526d8 (patch)
tree2f50b29ee69152f2af001ae66f7872224de40135 /lib/bundler/cli.rb
parentf2bb5394596c96ce5d7ff415694f3fc83715a96b (diff)
downloadruby-62e2e1da920d15e755f1826b3703ca81366526d8.tar.gz
[rubygems/rubygems] Allow auto-install to install missing git gems
Currently, auto-install with git gems fails, when it would succeed with a rubygems-source gem Fix the issue by doing the same fallback for git errors as we do for missing gems, the git errors should only bubble up in these cases when the gem is not installed, meaning we want to go through the install flow (and any persistent errors will be raised through there) https://github.com/rubygems/rubygems/commit/e25a339f7a
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 1f7afe72d8..c2fa92d875 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -805,7 +805,7 @@ module Bundler
begin
Bundler.definition.specs
- rescue GemNotFound
+ rescue GemNotFound, GitError
Bundler.ui.info "Automatically installing missing gems."
Bundler.reset!
invoke :install, []