From: Junio C Hamano <gitster@pobox.com>
To: "Torsten Bögershausen" <tboegi@web.de>
Cc: git@vger.kernel.org, lists@hcf.yourweb.de,
"brian m. carlson" <sandals@crustytoothpaste.net>
Subject: Re: [PATCH v2 1/3] connect.c: allow ssh://user@[2001:db8::1]/repo.git
Date: Sun, 22 Feb 2015 11:37:40 -0800 [thread overview]
Message-ID: <xmqqwq39vit7.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <54E8A9D0.30108@web.de> ("Torsten Bögershausen"'s message of "Sat, 21 Feb 2015 16:52:48 +0100")
Torsten Bögershausen <tboegi@web.de> writes:
> The ssh:// syntax was added in 2386d65822c91, it accepted
> ssh://user@2001:db8::1/repo.git, which is now legacy.
Please do not quote just a raw object name, but annotate it so that
we can more easily tell what the change was about and how far back
in the history it was done without having to run "git show -s" on
it.
> Over the years the parser was improved to support [] and port numbers,
> but the combination of ssh://user@[2001:db8::1]:222/repo.git did
> never work.
>
> The only only way to use a user name, a literall IPV6 address and a port
> number was ssh://[user@2001:db8::1]:222/repo.git
Let me double check if I understand Brian and the above correctly:
* The original 2386d658 (Add first cut at "git protocol" connect
logic., 2005-07-13) did not even care that the IPv6 syntax was
valid or not, and worse yet, it did not correctly handle literal
addresses in brackets;
* Later we started supporting literal addresses in brackets, but
"user@[literal]:port" form did not work. Instead, a bug in the
parser allowed "[user@literal]:port" (which is not a valid way to
spell such things) to work as if it were "user@[literal]:port",
which is what users would expect.
* This three-patch series is an attempt to allow that kosher
syntax, "user@[literal]:port", to work.
* It does not terribly matter if we broke the invalid syntax
"user@literal:port" without brackets, and it might even be
beneficial if we declared such addresses invalid and deprecated
for the sake of uniformity with other protocols. Making that
judgement, however, is outside the scope of this series.
"user@literal:port" will continue to behave as it did before.
Is that what is going on?
If that is the case, I think it addresses Brian's concern well.
Thanks.
(I haven't checked the patch text itself yet, though).
next prev parent reply other threads:[~2015-02-22 19:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-21 15:52 [PATCH v2 1/3] connect.c: allow ssh://user@[2001:db8::1]/repo.git Torsten Bögershausen
2015-02-22 17:57 ` Torsten Bögershausen
2015-02-22 19:37 ` Junio C Hamano [this message]
2015-02-23 0:23 ` brian m. carlson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqwq39vit7.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=lists@hcf.yourweb.de \
--cc=sandals@crustytoothpaste.net \
--cc=tboegi@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox