diff options
| author | Mike McQuaid | 2013-10-22 23:55:58 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-22 23:56:30 +0100 |
| commit | 6a3dc198f5501d4c98d661fd17fd2231715e8d16 (patch) | |
| tree | cf6796b8c4d9e50407296b0f3b280cd9eba06f5a /Library | |
| parent | 047c8eb9279b52dbaa8eda6585e8cd40e7263b9c (diff) | |
| download | brew-6a3dc198f5501d4c98d661fd17fd2231715e8d16.tar.bz2 | |
brew-pull: fix whitespace handling.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-pull.rb | 6 |
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 |
