summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJerome Dalbert <[email protected]>2024-07-25 02:02:21 -0700
committergit <[email protected]>2024-07-26 07:56:15 +0000
commit71dec15a70593d769804f4310c4746aba0883fae (patch)
tree8034a712622948fb49075bf2537996a0cd39d73a /lib
parent3542ad52e2e05ffb7507b3effccc184b1d8bdcfa (diff)
[rubygems/rubygems] Fix bundle check exit code when git gem is missing
Make `bundle check` exit with code 1 when gem git source is not yet checked out. https://github.com/rubygems/rubygems/commit/93162bf5af
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/check.rb b/lib/bundler/cli/check.rb
index 33d31cdd27..2adf59d5d5 100644
--- a/lib/bundler/cli/check.rb
+++ b/lib/bundler/cli/check.rb
@@ -17,7 +17,7 @@ module Bundler
begin
definition.resolve_only_locally!
not_installed = definition.missing_specs
- rescue GemNotFound, SolveFailure
+ rescue GemNotFound, GitError, SolveFailure
Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."
Bundler.ui.warn "Install missing gems with `bundle install`."
exit 1