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

Re: forcing a user@ into the URL if not present

From
Junio C Hamano <gitster@pobox.com>
Date
May 5, 2015, 17:45 UTC
Message-ID
<xmqqmw1iex4m.fsf@gitster.dls.corp.google.com>
In-Reply-To
<231730bb9947a6ddbbd8f3bda36c89f2@www.dscho.org>
Johannes Schindelin <johannes.schindelin@gmx.de> writes:
Show 5 quoted lines
> Having stumbled over [this
> ticket](https://github.com/git-for-windows/git/issues/92) recently, it
> appears to me as if the following should work for you:
>
> git clone https://:@repo.example.org/
Wow.

Is this a windows-only SSPI thing, or is this a widely accepted URL convention? I haven't seen anybody use such a URL but I would say that is a natural thing to expect to work, as both username and password are missing so they should default to some sensible values, in this case "current user, shouldn't need password", just like "scheme://site:/" is "port missing so it should default to some sensible value, appropriate for the scheme".

I think Torsten recently added a bit more test for our URL parsing code, especially for "scheme://site:/" (missing port), but I do not think we have "scheme://:site/" (missing user or password). Perhaps we would want to have additional tests to cover this shape of URL?

Thanks.
Previous: Johannes SchindelinNext: Torsten Bögershausen
Message 7 of 10 in “forcing a user@ into the URL if not present”
  1. Dan LangilleApr 22, 2015
  2. Dan LangilleApr 30, 2015
  3. brian m. carlsonApr 30, 2015
  4. Dan LangilleMay 4, 2015
  5. Dan LangilleMay 5, 2015
  6. Johannes SchindelinMay 5, 2015
  7. Junio C HamanoMay 5, 2015
  8. Torsten BögershausenMay 6, 2015
  9. Johannes SchindelinMay 6, 2015
  10. Junio C HamanoMay 6, 2015

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.