From 1b7e13df4f936dd318a23698b7b69bd2ca0e2487 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 5 Apr 2016 19:34:47 +0800 Subject: 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. --- Library/Homebrew/tap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3