Re: [BUG] Password cannot contain hash
To
Sebastian Gniazdowski
Cc
git@vger.kernel.org
From
Junio C Hamano
See Also
Prev
Date
2019-09-09 22:01:32 UTC
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.