1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Better error when installing a git lockfile and git not present

28f4842196
This commit is contained in:
David Rodríguez 2021-10-29 15:51:07 +02:00 committed by git
parent a954f273a8
commit f634d1ee00
2 changed files with 43 additions and 3 deletions

View file

@ -56,7 +56,6 @@ module Bundler
@ref = ref
@revision = revision
@git = git
raise GitNotInstalledError.new if allow? && !Bundler.git_present?
end
def revision
@ -208,7 +207,11 @@ module Bundler
end
def allow?
@git ? @git.allow_git_ops? : true
allowed = @git ? @git.allow_git_ops? : true
raise GitNotInstalledError.new if allowed && !Bundler.git_present?
allowed
end
def with_path(&blk)