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

Re: Calling ssh from git-gui

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 3, 2008, 17:25 UTC
Message-ID
<20080903172541.GD28315@spearce.org>
In-Reply-To
<200809031922.07083.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> wrote:
Show 9 quoted lines
> Shawn O. Pearce wrote:
> > Damn annoying for git-gui to be invoking a new terminal window, but
> > maybe that's what we have to do.  Be nice though if the window only
> > was opened because we couldn't do "git ls-remote url" but its hard
> > to tell "hanging because SSH needs the user" and "hanging because
> > the network is a 2400 baud modem".
> 
> You can set BatchMode (ssh_config(5)) to at least prevent it from
> hanging, can't you?

True, but this is OpenSSH specific, and has to be done on the command line, which git-gui has no control over.

Maybe git fetch and push can check for a tty on fd 0 and enable try to enable batch mode if fd 0 isn't a tty?

-- 
Shawn.
Previous: Thomas RastNext: Petr Baudis
Message 4 of 5 in “Calling ssh from git-gui”
  1. Petr BaudisSep 3, 2008
  2. Shawn O. PearceSep 3, 2008
  3. Thomas RastSep 3, 2008
  4. Shawn O. PearceSep 3, 2008
  5. Petr BaudisSep 3, 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.