diff options
| author | Adam Vandenberg | 2014-01-29 21:24:30 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-01-29 21:24:30 -0800 |
| commit | 92203ceacad7d44c888f9bdcfe9d9ff3621a87fe (patch) | |
| tree | 0919e833e4a8ee4e216e4096faa660620eb0b779 /Library | |
| parent | ed53bb333b4a2b918a2020343fda89ac8331c101 (diff) | |
| download | brew-92203ceacad7d44c888f9bdcfe9d9ff3621a87fe.tar.bz2 | |
don't trigger VCS when patching
When patching read-only files, patch can try to check-out from
a VCS system when other conditions are met, such as environmental
variables being set.
Homebrew never wants to trigger this behavior, so pass --get=0.
Closes Homebrew/homebrew#26277.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index a2b9c8fdb..9e738e3ff 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -635,7 +635,7 @@ class Formula when :bzip2 then with_system_path { safe_system "bunzip2", p.compressed_filename } end # -f means don't prompt the user if there are errors; just exit with non-zero status - safe_system '/usr/bin/patch', '-f', *(p.patch_args) + safe_system '/usr/bin/patch', '-g', '0', '-f', *(p.patch_args) end end |
