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

Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt

From
Jeff King <peff@peff.net>
Date
Oct 25, 2013, 07:24 UTC
Message-ID
<20131025072429.GB17029@sigill.intra.peff.net>
In-Reply-To
<005DF7EA-CF5A-408F-A145-07F53D836974@gmail.com>
On Mon, Oct 21, 2013 at 07:06:29PM +0200, arnaud brejeon wrote:
> I dont know if you plan to keep GIT_ASKPASS as is, but this
> environment variable is not mentioned on git svn documentation and I
> guess just a few people know about it. Moreover, the name is
> misleading as it handles all the prompts, not only the password one.

Yes, the "askpass" name is a little odd, but it is historical. The calling convention was invented for ssh, who used that name (and we do respect SSH_ASKPASS if it is set). Besides being a lousy name for requesting non-password data, it's also a lousy program for doing it. There's no way for the caller to specify "this is not a password", so the program always hides the characters as they are typed. It's one of the reasons the "git credential" subsystem was invented, which has a more flexible interface.

The askpass variables are documented in "git help credentials". However, the rest of that document does not apply to git-svn, which is unlike the rest of git in the way it handles authentication. So it might or might not make sense to point to it from the git-svn docs. Patches welcome if you want to look into it.

-Peff
Previous: arnaud brejeon
Message 9 of 9 in “Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt”
  1. 1/2 Add password parameter to git svn commands and use it when provided instead of defaulting to end-user promptarnaud.brejeon@gmail.com, Oct 12, 2013
  2. 2/2 Add SVN trust-server-cert parameter to git svn to accept SSL server certificates from unknwon authorities without promptingarnaud.brejeon@gmail.com, Oct 12, 2013
  3. Jonathan NiederOct 14, 2013
  4. Eric WongOct 14, 2013
  5. Jeff KingOct 14, 2013
  6. Eric WongOct 14, 2013
  7. arnaud brejeonOct 15, 2013
  8. arnaud brejeonOct 21, 2013
  9. Jeff KingOct 25, 2013

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.