From 8eefd4ec1338b20ba4624d68de9db12281a4496c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 12 Aug 2014 01:41:56 -0500 Subject: Set the remote config manually --- install | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'install') diff --git a/install b/install index 9aaac513c..c9c632104 100755 --- a/install +++ b/install @@ -174,10 +174,9 @@ Dir.chdir HOMEBREW_PREFIX do # we do it in four steps to avoid merge errors when reinstalling system git, "init", "-q" - # "git remote add origin" may fail if there is an origin remote defined in - # the user's global gitconfig - Kernel.system(git, "remote", "add", "origin", HOMEBREW_REPO) || - system(git, "remote", "set-url", "--add", "origin", HOMEBREW_REPO) + # "git remote add" will fail if the remote is defined in the global config + system git, "config", "remote.origin.url", HOMEBREW_REPO + system git, "config", "remote.origin.fetch", "+refs/heads/*:refs/remotes/origin/*" args = git, "fetch", "origin", "master:refs/remotes/origin/master", "-n" args << "--depth=1" if ARGV.include? "--fast" -- cgit v1.2.3