aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-10-22 23:55:58 +0100
committerMike McQuaid2013-10-22 23:56:30 +0100
commitfb413d5eef16732173b0c690286caff9f3ec1031 (patch)
tree114385e789a4e2bf6fd95b61c51c938639f47134 /Library
parente26eeeb9e176bc42f0ccb6fb500503c9fe87f92a (diff)
downloadhomebrew-fb413d5eef16732173b0c690286caff9f3ec1031.tar.bz2
brew-pull: fix whitespace handling.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-pull.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb
index de368f9fb..a0eb1b4b9 100755
--- a/Library/Contributions/cmd/brew-pull.rb
+++ b/Library/Contributions/cmd/brew-pull.rb
@@ -52,7 +52,11 @@ ARGV.named.each do|arg|
patch_args << '--signoff' unless ARGV.include? '--clean'
# 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' or ARGV.include? '--clean'
+ if ARGV.include? '--ignore-whitespace' or ARGV.include? '--clean'
+ patch_args << '--whitespace=nowarn'
+ else
+ patch_args << '--whitespace=fix'
+ end
patch_args << patchpath
safe_system 'git', *patch_args