aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-10-22 23:55:58 +0100
committerMike McQuaid2013-10-22 23:56:30 +0100
commit6a3dc198f5501d4c98d661fd17fd2231715e8d16 (patch)
treecf6796b8c4d9e50407296b0f3b280cd9eba06f5a
parent047c8eb9279b52dbaa8eda6585e8cd40e7263b9c (diff)
downloadbrew-6a3dc198f5501d4c98d661fd17fd2231715e8d16.tar.bz2
brew-pull: fix whitespace handling.
-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