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

Re: Git GUI vs interactive post-commit hooks

From
Jeff King <peff@peff.net>
Date
May 20, 2008, 23:16 UTC
Message-ID
<20080520231631.GB22934@sigill.intra.peff.net>
In-Reply-To
<20080520230204.GA5383@atjola.homenet>
On Wed, May 21, 2008 at 01:02:04AM +0200, Björn Steinbrink wrote:
Show 7 quoted lines
> > Redirect stdin from /dev/null
> 
> Does that actually work for you? It didn't work for me, because ssh then
> simply goes and opens /dev/tty to ask for the password.
> 
> $ ssh -V
> OpenSSH_4.7p1 Debian-10, OpenSSL 0.9.8g 19 Oct 2007

I had to perform this same task a few weeks ago, and ended up using 'setsid' to get rid of the controlling tty. You may also need to unset SSH_ASKPASS and DISPLAY.

-Peff
Previous: Björn SteinbrinkNext: Alex Riesen
Message 7 of 9 in “Git GUI vs interactive post-commit hooks”
  1. Alexander GladyshMay 19, 2008
  2. Björn SteinbrinkMay 19, 2008
  3. Alexander GladyshMay 19, 2008
  4. Björn SteinbrinkMay 19, 2008
  5. Alex RiesenMay 20, 2008
  6. Björn SteinbrinkMay 20, 2008
  7. Jeff KingMay 20, 2008
  8. Alex RiesenMay 22, 2008
  9. Björn SteinbrinkMay 22, 2008

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.