aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index 3ff655b99..980fd1864 100755
--- a/Library/Contributions/examples/brew-pull.rb
+++ b/Library/Contributions/examples/brew-pull.rb
@@ -36,9 +36,10 @@ HOMEBREW_REPOSITORY.cd do
# Store current revision
revision = `git log -n1 --format=%H`.strip()
- # Makes sense to squash whitespace errors, we don't want them.
ohai 'Applying patch'
patch_args = %w[am --signoff]
+ # Normally we don't want whitespace errors, but squashing them can break
+ # patches so an option is provided to skip this step.
patch_args << '--whitespace=fix' unless ARGV.include? '--ignore-whitespace'
patch_args << patchpath