aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-08-12 01:41:56 -0500
committerJack Nagel2014-08-12 01:41:56 -0500
commit8eefd4ec1338b20ba4624d68de9db12281a4496c (patch)
treebebf87960f0e44507e337f1f432c54fddea147e1
parent5cd6b3580a4d7227a42c8608fcc0955cab882b01 (diff)
downloadhomebrew-8eefd4ec1338b20ba4624d68de9db12281a4496c.tar.bz2
Set the remote config manually
-rwxr-xr-xinstall7
1 files changed, 3 insertions, 4 deletions
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"