Re: [PATCH v3 06/10] clone: delay cloning until after remote HEAD checking
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> 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.