{"thread":{"id":"35033","subject":"Bug: [hostname:port]:repo.git notation no longer works (for ssh)","startedAt":"2013-09-27T08:07:26Z","lastAt":"2013-09-27T14:43:04Z","messageCount":6,"participants":["Morten Stenshorne","Duy Nguyen","Stefan Näwe","Phil Hord"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"228301","messageId":"87vc1mg01t.fsf@aeneas.oslo.osa","threadId":"35033","inReplyTo":null,"subject":"Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Morten Stenshorne","fromEmail":"mstensho@opera.com","sentAt":"2013-09-27T08:07:26Z","receivedAt":"2013-09-27T08:07:26Z","isPatch":false,"sender":{"key":"mstensho@opera.com","avatar":null},"body":"I've just upgraded to Debian testing (jessie), and with that I got a\nbrand new (for me) git version:\n\n    $ git --version\n    git version 1.8.4.rc3\n\nSome of my repos I use an ssh tunnel to reach, so when I want to reach a\nrepo forwarded to local port 2223, using the ssh protocol, the following\nused to work (.git/config) in older git versions:\n\n    [remote \"exp\"]\n            url = [localhost:2223]:blink.git\n            fetch = +refs/heads/*:refs/remotes/exp/*\n\nHowever, now I get this message:\n\n    $ git fetch exp\n    fatal: ':blink.git' does not appear to be a git repository\n    fatal: Could not read from remote repository.\n\n    Please make sure you have the correct access rights\n    and the repository exists.\n\nIf I don't go via the ssh tunnel (I finally have some VPN stuff these\ndays, so I don't really need the tunnel thing anymore, but that's going\nto be a lot of remotes to update, so I'd prefer it just worked like it\nused to):\n\n-            url = [localhost:2223]:blink.git\n+            url = git:blink.git\n\n... it works fine.\n\n-- \n---- Morten Stenshorne, developer, Opera Software ASA ----\n------------------ http://www.opera.com/ -----------------\n"},{"id":"228304","messageId":"CACsJy8ALCXo0ZN-_HRCvN-xDNiZt9FmonXF5=2YE6L8nJBQoOw@mail.gmail.com","threadId":"35033","inReplyTo":"87vc1mg01t.fsf@aeneas.oslo.osa","subject":"Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-09-27T08:38:36Z","receivedAt":"2013-09-27T08:38:36Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Sep 27, 2013 at 3:07 PM, Morten Stenshorne <mstensho@opera.com> wrote:\n> I've just upgraded to Debian testing (jessie), and with that I got a\n> brand new (for me) git version:\n>\n>     $ git --version\n>     git version 1.8.4.rc3\n>\n> Some of my repos I use an ssh tunnel to reach, so when I want to reach a\n> repo forwarded to local port 2223, using the ssh protocol, the following\n> used to work (.git/config) in older git versions:\n>\n>     [remote \"exp\"]\n>             url = [localhost:2223]:blink.git\n>             fetch = +refs/heads/*:refs/remotes/exp/*\n>\n> However, now I get this message:\n>\n>     $ git fetch exp\n>     fatal: ':blink.git' does not appear to be a git repository\n>     fatal: Could not read from remote repository.\n\nUgh.. bisect pointed to my commit 6000334 (clone: allow cloning local\npaths with colons in them - 2013-05-04). Will have a closer look\ntonight.\n-- \nDuy\n"},{"id":"228306","messageId":"524547E8.4070406@atlas-elektronik.com","threadId":"35033","inReplyTo":"87vc1mg01t.fsf@aeneas.oslo.osa","subject":"Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Stefan Näwe","fromEmail":"stefan.naewe@atlas-elektronik.com","sentAt":"2013-09-27T08:55:04Z","receivedAt":"2013-09-27T08:55:04Z","isPatch":false,"sender":{"key":"stefan.naewe@gmail.com","avatar":"https://avatars.githubusercontent.com/u/4468?v=4"},"body":"Am 27.09.2013 10:07, schrieb Morten Stenshorne:\n> I've just upgraded to Debian testing (jessie), and with that I got a\n> brand new (for me) git version:\n> \n>     $ git --version\n>     git version 1.8.4.rc3\n> \n> Some of my repos I use an ssh tunnel to reach, so when I want to reach a\n> repo forwarded to local port 2223, using the ssh protocol, the following\n> used to work (.git/config) in older git versions:\n> \n>     [remote \"exp\"]\n>             url = [localhost:2223]:blink.git\n>             fetch = +refs/heads/*:refs/remotes/exp/*\n> \n> However, now I get this message:\n> \n>     $ git fetch exp\n>     fatal: ':blink.git' does not appear to be a git repository\n>     fatal: Could not read from remote repository.\n\nI wonder why that worked (especially the \"[...]\") at all ?\nI thought specifying a port for a SSH connection was always only\npossible when using\n\n       ssh://user@host:port/path/to/repo.git\n- or -\n       ssh://user@host:port/~user/path/to/repo.git\n\nAt least that's what I always read out of the git-clone man page.\n\nStefan\n-- \n----------------------------------------------------------------\n/dev/random says: Don't ask me, I have random access memory.\npython -c \"print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')\"\n"},{"id":"228317","messageId":"CACsJy8CURVVpdGGJgpG2abJ3yo+fEnbeXS1Dug4zPCJ=zMLxmQ@mail.gmail.com","threadId":"35033","inReplyTo":"524547E8.4070406@atlas-elektronik.com","subject":"Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-09-27T13:48:18Z","receivedAt":"2013-09-27T13:48:18Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Sep 27, 2013 at 3:55 PM, Stefan Näwe\n<stefan.naewe@atlas-elektronik.com> wrote:\n>>     [remote \"exp\"]\n>>             url = [localhost:2223]:blink.git\n>>             fetch = +refs/heads/*:refs/remotes/exp/*\n>>\n>> However, now I get this message:\n>>\n>>     $ git fetch exp\n>>     fatal: ':blink.git' does not appear to be a git repository\n>>     fatal: Could not read from remote repository.\n>\n> I wonder why that worked (especially the \"[...]\") at all ?\n> I thought specifying a port for a SSH connection was always only\n> possible when using\n>\n>        ssh://user@host:port/path/to/repo.git\n> - or -\n>        ssh://user@host:port/~user/path/to/repo.git\n>\n> At least that's what I always read out of the git-clone man page.\n\n[] is used to wrap ipv6 and because we don't know if it's actually\nipv6 or v4, we accept it in both cases, so [abc] can be used in place\n\"host\" above. No [host:port]:path won't work because \"host:port\" is\nconsidered host name. But [host or ip]:path may work (that is after I\nfix my bug).\n-- \nDuy\n"},{"id":"228321","messageId":"CABURp0pNcLEELwg-putH_Wtab-gTrMXTB7uGPMZSLfgXnFttew@mail.gmail.com","threadId":"35033","inReplyTo":"87vc1mg01t.fsf@aeneas.oslo.osa","subject":"Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Phil Hord","fromEmail":"phil.hord@gmail.com","sentAt":"2013-09-27T14:31:35Z","receivedAt":"2013-09-27T14:31:35Z","isPatch":false,"sender":{"key":"phil.hord@gmail.com","avatar":"https://avatars.githubusercontent.com/u/123908?v=4"},"body":"On Fri, Sep 27, 2013 at 4:07 AM, Morten Stenshorne <mstensho@opera.com> wrote:\n> If I don't go via the ssh tunnel (I finally have some VPN stuff these\n> days, so I don't really need the tunnel thing anymore, but that's going\n> to be a lot of remotes to update, so I'd prefer it just worked like it\n> used to):\n>\n> -            url = [localhost:2223]:blink.git\n> +            url = git:blink.git\n>\n> ... it works fine.\n\n\nUntil you get a proper fix, I wonder if this will help:\n\n  git config --global --add url.\"git:\".insteadOf  \"[localhost:2223]:\"\n\nSee \"git help config\" for details on the insteadOf config setting.\n\nPhil\n"},{"id":"228323","messageId":"8738oqz5on.fsf@aeneas.oslo.osa","threadId":"35033","inReplyTo":"CABURp0pNcLEELwg-putH_Wtab-gTrMXTB7uGPMZSLfgXnFttew@mail.gmail.com","subject":"Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)","fromName":"Morten Stenshorne","fromEmail":"mstensho@opera.com","sentAt":"2013-09-27T14:43:04Z","receivedAt":"2013-09-27T14:43:04Z","isPatch":false,"sender":{"key":"mstensho@opera.com","avatar":null},"body":"Phil Hord <phil.hord@gmail.com> writes:\n\n> On Fri, Sep 27, 2013 at 4:07 AM, Morten Stenshorne <mstensho@opera.com> wrote:\n>> If I don't go via the ssh tunnel (I finally have some VPN stuff these\n>> days, so I don't really need the tunnel thing anymore, but that's going\n>> to be a lot of remotes to update, so I'd prefer it just worked like it\n>> used to):\n>>\n>> -            url = [localhost:2223]:blink.git\n>> +            url = git:blink.git\n>>\n>> ... it works fine.\n>\n>\n> Until you get a proper fix, I wonder if this will help:\n>\n>   git config --global --add url.\"git:\".insteadOf  \"[localhost:2223]:\"\n>\n> See \"git help config\" for details on the insteadOf config setting.\n\nYes, that works. Thanks!\n\n-- \n---- Morten Stenshorne, developer, Opera Software ASA ----\n------------------ http://www.opera.com/ -----------------\n"}]}