diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 9c1d44cbf1..f6a5a1bf80 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -296,6 +296,10 @@ class Tap $stderr.ohai "Tapping #{name}" unless quiet args = %W[clone #{requested_remote} #{path}] + + # Override possible user configs like: + # git config --global clone.defaultRemoteName notorigin + args << "--origin=origin" args << "--depth=1" unless full_clone args << "-q" if quiet