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

Re: [PATCH 1/1] Use GIT_ASKPASS environment to launch thirdpart UI app to get password

From
David Aguilar <davvid@gmail.com>
Date
Feb 25, 2010, 09:15 UTC
Message-ID
<20100225091500.GB2903@gmail.com>
In-Reply-To
<1976ea661002240013j164fc875o469c0dcdf74afe0c@mail.gmail.com>
On Wed, Feb 24, 2010 at 04:13:01PM +0800, Frank Li wrote:
Show 16 quoted lines
> 
> > Many users already have SSH_ASKPASS defined.  It would be very
> > nice if we supported SSH_ASKPASS as a fallback when GIT_ASKPASS
> > is not provided.
> >
> 
> I consider add such fallback at git.c.  when user use git svn,  git
> main program will be called firstly.
> git main entry will check if GIT_ASKPASS and SSH_ASKPASS, if
> SSH_ASKPASS set but GIT_ASKPASS not set,
> GIT_ASKPASS will be set as SSH_ASKPASS.
> 
> Do you think we needs add such check at git-svn.perl ?
> 
> best regards
> Frank Li

Interesting question. I had never thought of moving the fallback to git.

I would have done it in the script as a localized fix but I definately see the value in aiding scripts from all having to implement this same fallback, though:

	$ENV{GIT_ASKPASS} ||= $ENV{SSH_ASKPASS};

If Junio, Eric, and the git list think that this should live in git instead then by all means.

-- 
		David
Previous: Frank LiNext: Laszlo Papp
Message 6 of 8 in “Use GIT_ASKPASS environment to launch thirdpart UI app to get password”
  1. 1/1 Use GIT_ASKPASS environment to launch thirdpart UI app to get passwordFrank Li, Feb 23, 2010
  2. Laszlo PappFeb 23, 2010
  3. David AguilarFeb 24, 2010
  4. Junio C HamanoFeb 24, 2010
  5. Frank LiFeb 24, 2010
  6. David AguilarFeb 25, 2010
  7. Laszlo PappFeb 25, 2010
  8. Frank LiFeb 26, 2010

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.