Re: [BUG] Password cannot contain hash
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 9, 2019, 22:01 UTC
- Message-ID
- <xmqq5zm1i0xv.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAKc7PVDT0JXCAW=aON2jXidCgib=SjoUXU6Yh4t+xWB8QW4NPQ@mail.gmail.com>
Sebastian Gniazdowski <sgniazdowski@gmail.com> writes:
> Hello, > if the password contains a hash, then it's impossible to clone a > repository, either with https or ssh protocols. I've had to use a > `gitg' GUI to clone such a repo.
Hmph, do you mean that
git clone https://user:password@hosting.site/repository/ git clone ssh://user:password@hosting.site/repository/
if the "password" has '#' in it? Do passwords with colon, slash or at-sign have the same issue? Would it help to URI escape the problematic characters?
It is a separate issue to use passwords embedded in the URLs, but still, escaping ought to work.