Set the remote config manually

See 5cd6b35 and 8eefd4e.
This commit is contained in:
Jack Nagel 2014-08-12 01:45:54 -05:00
parent 15162911e3
commit f40650ecd0

View File

@ -79,7 +79,8 @@ module Homebrew
if Dir[".git/*"].empty?
safe_system "git", "init"
safe_system "git", "config", "core.autocrlf", "false"
safe_system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew.git"
safe_system "git", "config", "remote.origin.url", "https://github.com/Homebrew/homebrew.git"
safe_system "git", "config", "remote.origin.fetch", "+refs/heads/*:refs/remotes/origin/*"
safe_system "git", "fetch", "origin"
safe_system "git", "reset", "--hard", "origin/master"
end