From: Junio C Hamano Date: Tue, 24 Jan 2012 00:34:14 GMT Subject: Re: [PATCH v3 06/10] clone: delay cloning until after remote HEAD checking Message-ID: <7vzkde546x.fsf@alter.siamese.dyndns.org> In-Reply-To: <7v62g26jm3.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > It breaks pushing to multiple URLs like this: > > $ cat .git/config > [remote "origin"] > url = https://code.google.com/p/git-htmldocs/ > url = github.com:gitster/git-htmldocs.git > push = refs/heads/master:refs/heads/master > $ git push > > The second url that is supposed to use the git-over-ssh transport > mistakenly use https:// and fails with: > > error: Couldn't resolve host 'github.com:gitster' while accessing > github.com:gitster/git-htmldocs.git/info/refs > fatal: HTTP request failed And here is an obvious band-aid to work it around.