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

Re: [PATCH 3/3] fallback SSH_ASKPASS when GIT_ASKPASS not set

From
Frank Li <lznuaa@gmail.com>
Date
Feb 25, 2010, 01:37 UTC
Message-ID
<1976ea661002241737s74e0b9d3q30ba3f6632980fa2@mail.gmail.com>
In-Reply-To
<7vocje38ll.fsf@alter.siamese.dyndns.org>
Show 5 quoted lines
> So probably the patch to implement the fallback should be more like
>
>        if (SSH_ASKPASS is set but not GIT_ASKPASS)
>                set GIT_ASKPASS from SSH_ASKPASS
>
do you means just keep these?
+       if (!getenv("GIT_ASKPASS") && getenv("SSH_ASKPASS"))
+               setenv("GIT_ASKPASS", getenv("SSH_ASKPASS"), 1);

best regards Frank Li

Previous: Junio C Hamano
Message 5 of 5 in “fallback SSH_ASKPASS when GIT_ASKPASS not set”
  1. 3/3 fallback SSH_ASKPASS when GIT_ASKPASS not setFrank Li, Feb 24, 2010
  2. Erik Faye-LundFeb 24, 2010
  3. Frank LiFeb 25, 2010
  4. Junio C HamanoFeb 24, 2010
  5. Frank LiFeb 25, 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.