diff options
| author | Jack Nagel | 2014-08-12 01:41:56 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-08-12 01:41:56 -0500 | 
| commit | 8eefd4ec1338b20ba4624d68de9db12281a4496c (patch) | |
| tree | bebf87960f0e44507e337f1f432c54fddea147e1 | |
| parent | 5cd6b3580a4d7227a42c8608fcc0955cab882b01 (diff) | |
| download | homebrew-8eefd4ec1338b20ba4624d68de9db12281a4496c.tar.bz2 | |
Set the remote config manually
| -rwxr-xr-x | install | 7 | 
1 files changed, 3 insertions, 4 deletions
| @@ -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" | 
