brew-pull: allow resolution with --resolve.
This commit is contained in:
parent
9b86218854
commit
2d67c5ee8f
@ -34,8 +34,12 @@ module Homebrew
|
||||
begin
|
||||
safe_system 'git', 'am', *patch_args
|
||||
rescue ErrorDuringExecution
|
||||
if ARGV.include? "--resolve"
|
||||
odie "Patch failed to apply: try to resolve it."
|
||||
else
|
||||
system 'git', 'am', '--abort'
|
||||
odie 'Patch failed to apply: aborted.'
|
||||
end
|
||||
ensure
|
||||
patchpath.unlink
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user