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.
This commit is contained in:
Xu Cheng 2016-04-05 19:34:47 +08:00
parent 9ae503b107
commit 1b7e13df4f

View File

@ -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