* Bug: [hostname:port]:repo.git notation no longer works (for ssh)
@ 2013-09-27 8:07 Morten Stenshorne
2013-09-27 8:38 ` Duy Nguyen
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Morten Stenshorne @ 2013-09-27 8:07 UTC (permalink / raw)
To: git
I've just upgraded to Debian testing (jessie), and with that I got a
brand new (for me) git version:
$ git --version
git version 1.8.4.rc3
Some of my repos I use an ssh tunnel to reach, so when I want to reach a
repo forwarded to local port 2223, using the ssh protocol, the following
used to work (.git/config) in older git versions:
[remote "exp"]
url = [localhost:2223]:blink.git
fetch = +refs/heads/*:refs/remotes/exp/*
However, now I get this message:
$ git fetch exp
fatal: ':blink.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
If I don't go via the ssh tunnel (I finally have some VPN stuff these
days, so I don't really need the tunnel thing anymore, but that's going
to be a lot of remotes to update, so I'd prefer it just worked like it
used to):
- url = [localhost:2223]:blink.git
+ url = git:blink.git
... it works fine.
--
---- Morten Stenshorne, developer, Opera Software ASA ----
------------------ http://www.opera.com/ -----------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)
2013-09-27 8:07 Bug: [hostname:port]:repo.git notation no longer works (for ssh) Morten Stenshorne
@ 2013-09-27 8:38 ` Duy Nguyen
2013-09-27 8:55 ` Stefan Näwe
2013-09-27 14:31 ` Phil Hord
2 siblings, 0 replies; 6+ messages in thread
From: Duy Nguyen @ 2013-09-27 8:38 UTC (permalink / raw)
To: Morten Stenshorne; +Cc: Git Mailing List
On Fri, Sep 27, 2013 at 3:07 PM, Morten Stenshorne <mstensho@opera.com> wrote:
> I've just upgraded to Debian testing (jessie), and with that I got a
> brand new (for me) git version:
>
> $ git --version
> git version 1.8.4.rc3
>
> Some of my repos I use an ssh tunnel to reach, so when I want to reach a
> repo forwarded to local port 2223, using the ssh protocol, the following
> used to work (.git/config) in older git versions:
>
> [remote "exp"]
> url = [localhost:2223]:blink.git
> fetch = +refs/heads/*:refs/remotes/exp/*
>
> However, now I get this message:
>
> $ git fetch exp
> fatal: ':blink.git' does not appear to be a git repository
> fatal: Could not read from remote repository.
Ugh.. bisect pointed to my commit 6000334 (clone: allow cloning local
paths with colons in them - 2013-05-04). Will have a closer look
tonight.
--
Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)
2013-09-27 8:07 Bug: [hostname:port]:repo.git notation no longer works (for ssh) Morten Stenshorne
2013-09-27 8:38 ` Duy Nguyen
@ 2013-09-27 8:55 ` Stefan Näwe
2013-09-27 13:48 ` Duy Nguyen
2013-09-27 14:31 ` Phil Hord
2 siblings, 1 reply; 6+ messages in thread
From: Stefan Näwe @ 2013-09-27 8:55 UTC (permalink / raw)
To: Morten Stenshorne, git@vger.kernel.org
Am 27.09.2013 10:07, schrieb Morten Stenshorne:
> I've just upgraded to Debian testing (jessie), and with that I got a
> brand new (for me) git version:
>
> $ git --version
> git version 1.8.4.rc3
>
> Some of my repos I use an ssh tunnel to reach, so when I want to reach a
> repo forwarded to local port 2223, using the ssh protocol, the following
> used to work (.git/config) in older git versions:
>
> [remote "exp"]
> url = [localhost:2223]:blink.git
> fetch = +refs/heads/*:refs/remotes/exp/*
>
> However, now I get this message:
>
> $ git fetch exp
> fatal: ':blink.git' does not appear to be a git repository
> fatal: Could not read from remote repository.
I wonder why that worked (especially the "[...]") at all ?
I thought specifying a port for a SSH connection was always only
possible when using
ssh://user@host:port/path/to/repo.git
- or -
ssh://user@host:port/~user/path/to/repo.git
At least that's what I always read out of the git-clone man page.
Stefan
--
----------------------------------------------------------------
/dev/random says: Don't ask me, I have random access memory.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)
2013-09-27 8:55 ` Stefan Näwe
@ 2013-09-27 13:48 ` Duy Nguyen
0 siblings, 0 replies; 6+ messages in thread
From: Duy Nguyen @ 2013-09-27 13:48 UTC (permalink / raw)
To: Stefan Näwe; +Cc: Morten Stenshorne, git@vger.kernel.org
On Fri, Sep 27, 2013 at 3:55 PM, Stefan Näwe
<stefan.naewe@atlas-elektronik.com> wrote:
>> [remote "exp"]
>> url = [localhost:2223]:blink.git
>> fetch = +refs/heads/*:refs/remotes/exp/*
>>
>> However, now I get this message:
>>
>> $ git fetch exp
>> fatal: ':blink.git' does not appear to be a git repository
>> fatal: Could not read from remote repository.
>
> I wonder why that worked (especially the "[...]") at all ?
> I thought specifying a port for a SSH connection was always only
> possible when using
>
> ssh://user@host:port/path/to/repo.git
> - or -
> ssh://user@host:port/~user/path/to/repo.git
>
> At least that's what I always read out of the git-clone man page.
[] is used to wrap ipv6 and because we don't know if it's actually
ipv6 or v4, we accept it in both cases, so [abc] can be used in place
"host" above. No [host:port]:path won't work because "host:port" is
considered host name. But [host or ip]:path may work (that is after I
fix my bug).
--
Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)
2013-09-27 8:07 Bug: [hostname:port]:repo.git notation no longer works (for ssh) Morten Stenshorne
2013-09-27 8:38 ` Duy Nguyen
2013-09-27 8:55 ` Stefan Näwe
@ 2013-09-27 14:31 ` Phil Hord
2013-09-27 14:43 ` Morten Stenshorne
2 siblings, 1 reply; 6+ messages in thread
From: Phil Hord @ 2013-09-27 14:31 UTC (permalink / raw)
To: Morten Stenshorne; +Cc: git@vger.kernel.org
On Fri, Sep 27, 2013 at 4:07 AM, Morten Stenshorne <mstensho@opera.com> wrote:
> If I don't go via the ssh tunnel (I finally have some VPN stuff these
> days, so I don't really need the tunnel thing anymore, but that's going
> to be a lot of remotes to update, so I'd prefer it just worked like it
> used to):
>
> - url = [localhost:2223]:blink.git
> + url = git:blink.git
>
> ... it works fine.
Until you get a proper fix, I wonder if this will help:
git config --global --add url."git:".insteadOf "[localhost:2223]:"
See "git help config" for details on the insteadOf config setting.
Phil
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug: [hostname:port]:repo.git notation no longer works (for ssh)
2013-09-27 14:31 ` Phil Hord
@ 2013-09-27 14:43 ` Morten Stenshorne
0 siblings, 0 replies; 6+ messages in thread
From: Morten Stenshorne @ 2013-09-27 14:43 UTC (permalink / raw)
To: Phil Hord; +Cc: git@vger.kernel.org
Phil Hord <phil.hord@gmail.com> writes:
> On Fri, Sep 27, 2013 at 4:07 AM, Morten Stenshorne <mstensho@opera.com> wrote:
>> If I don't go via the ssh tunnel (I finally have some VPN stuff these
>> days, so I don't really need the tunnel thing anymore, but that's going
>> to be a lot of remotes to update, so I'd prefer it just worked like it
>> used to):
>>
>> - url = [localhost:2223]:blink.git
>> + url = git:blink.git
>>
>> ... it works fine.
>
>
> Until you get a proper fix, I wonder if this will help:
>
> git config --global --add url."git:".insteadOf "[localhost:2223]:"
>
> See "git help config" for details on the insteadOf config setting.
Yes, that works. Thanks!
--
---- Morten Stenshorne, developer, Opera Software ASA ----
------------------ http://www.opera.com/ -----------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-27 14:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27 8:07 Bug: [hostname:port]:repo.git notation no longer works (for ssh) Morten Stenshorne
2013-09-27 8:38 ` Duy Nguyen
2013-09-27 8:55 ` Stefan Näwe
2013-09-27 13:48 ` Duy Nguyen
2013-09-27 14:31 ` Phil Hord
2013-09-27 14:43 ` Morten Stenshorne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).