aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorJack Nagel2014-07-05 16:34:22 -0500
committerJack Nagel2014-07-05 16:35:43 -0500
commit6c91c0806f6295ed9aa650e2cfc298aa864d886b (patch)
treebfc1086804aa6ea5ed29f763abeb09956e43c650 /Library/Contributions
parentcf4080a9e0517efc16a71b686e80c3ebcc38f5a2 (diff)
downloadbrew-6c91c0806f6295ed9aa650e2cfc298aa864d886b.tar.bz2
brew-pull: let git-am attempt three-way merge if patch doesn't apply
Diffstat (limited to 'Library/Contributions')
-rwxr-xr-xLibrary/Contributions/cmd/brew-pull.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb
index 9cc6b478e..24294320b 100755
--- a/Library/Contributions/cmd/brew-pull.rb
+++ b/Library/Contributions/cmd/brew-pull.rb
@@ -66,6 +66,9 @@ ARGV.named.each do |arg|
else
patch_args << '--whitespace=fix'
end
+
+ # Fall back to three-way merge if patch does not apply cleanly
+ patch_args << "-3"
patch_args << patchpath
begin