diff options
| author | Xu Cheng | 2016-04-05 19:34:47 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-05 19:34:47 +0800 |
| commit | 1b7e13df4f936dd318a23698b7b69bd2ca0e2487 (patch) | |
| tree | 95cce1fb775d6c632869937622186e9380b63da2 | |
| parent | 9ae503b107b6c291283fc90d064d5bb68095a99d (diff) | |
| download | brew-1b7e13df4f936dd318a23698b7b69bd2ca0e2487.tar.bz2 | |
CoreTap#install: fix clone target setting
When invoking `brew tap homebrew/core`, the input options will be like
`{ :clone_target => nil }`. This renders `Hash#merge` a dead operation.
It doesn't impact Homebrew itself, but could cause problem for
downstream projects Linxubrew/Tigerbrew when they adopt core/formula
separation.
| -rw-r--r-- | Library/Homebrew/tap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 0214b39f9..8f8e99e67 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -470,7 +470,7 @@ class CoreTap < Tap end def install(options = {}) - options = { :clone_target => OFFICIAL_REMOTE }.merge(options) + options[:clone_target] ||= OFFICIAL_REMOTE super options end |
