brew-pull: allow resolution with --resolve.

This commit is contained in:
Mike McQuaid 2014-11-03 10:00:50 +00:00
parent 9b86218854
commit 2d67c5ee8f

View File

@ -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