Re: clone from url with email address as username?(escaping @ symbol)
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 29, 2009, 14:30 UTC
- Message-ID
- <vpq1vlp962h.fsf@bauges.imag.fr>
- In-Reply-To
- <fabb9a1e0909290725w616c3ea9vcb1d2c53950f7788@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 7 quoted lines
> Heya, > > On Tue, Sep 29, 2009 at 16:20, Ben Bennett <benbennett@gmail.com> wrote: >> Is there any escape sequence for the @ symbol when cloning? > > I thought @ is not allowed to be in an url? What do you need to > escape it for?
If your username is "foo@bar.com", then the clone URL might well be
ssh://foo@bar.com@server.com/path/to/repo
The question is which @ is the login/server separator, and which one is included in the login. A quick test with
git clone ssh://foo@bar.com@localhost/path/to/repo
shows me that Git does the right thing, i.e. uses "foo@bar.com" as the login, without the need to escape it.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/