Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v3 06/10] clone: delay cloning until after remote HEAD checking

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:51

Junio C Hamano [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help