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:
parent
a954f273a8
commit
f634d1ee00
2 changed files with 43 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue