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

Re: [Wishlist] could git tell which password it is asking when asking a password.

From
Jeff King <peff@peff.net>
Date
Jul 1, 2011, 20:48 UTC
Message-ID
<20110701204823.GB32731@sigill.intra.peff.net>
In-Reply-To
<7vfwmpoi9y.fsf@alter.siamese.dyndns.org>
On Fri, Jul 01, 2011 at 01:30:49PM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> Rémi Vanicat <vanicat@debian.org> writes:
> 
> > I also believe that having the host name would be useful, both for human
> > (another example would be git remote update when there are several
> > remote) and script.  
> 
> Patches welcome, but I have to warn you that the code may _not_ know the
> URL at that point in the callchain.

Yeah, you have to save it; the simplest time is when we parse the username+password bits out of the URL during http_auth_init, and then pass it through to git_getpass.

But see the patch series I just mentioned elsewhere in the thread. Right now it still uses "Password:" for http authentication, but it would be a one-liner to have it use "Password for 'user@example.com':".

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 9 of 15 in “[Wishlist] could git tell which password it is asking when asking a password.”
  1. Rémi VanicatJul 1, 2011
  2. Junio C HamanoJul 1, 2011
  3. Junio C HamanoJul 1, 2011
  4. Shawn PearceJul 1, 2011
  5. Junio C HamanoJul 1, 2011
  6. Rémi VanicatJul 1, 2011
  7. Ted ZlatanovJul 1, 2011
  8. Junio C HamanoJul 1, 2011
  9. Jeff KingJul 1, 2011
  10. Jeff KingJul 1, 2011
  11. Ted ZlatanovJul 1, 2011
  12. encrypted netrc for Git (was: [Wishlist] could git tell which password it is asking when asking a password.)Ted Zlatanov, Jul 14, 2011
  13. Jeff KingJul 14, 2011
  14. Ted ZlatanovJul 15, 2011
  15. Jeff KingJul 15, 2011

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.