git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

        
Previous: Sebastian GniazdowskiNext: Jeff King
Message 2 of 3 in “[BUG] Password cannot contain hash”
  1. Sebastian GniazdowskiSep 9, 2019
  2. Junio C HamanoSep 9, 2019
  3. Jeff KingSep 9, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.