diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index f2c34437d9..128a55b8ec 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -897,7 +897,7 @@ class GitDownloadStrategy < VCSDownloadStrategy case @ref_type when :branch then "+refs/heads/#{@ref}:refs/remotes/origin/#{@ref}" when :tag then "+refs/tags/#{@ref}:refs/tags/#{@ref}" - else "+refs/heads/master:refs/remotes/origin/master" + else "+refs/heads/*:refs/remotes/origin/*" end end