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

[PATCH (GIT-GUI,MINGW) 0/3] Fix OpenSSH & Git-Gui integration in msysgit

From
Alexander Gavrilov <angavrilov@gmail.com>
Date
Oct 20, 2008, 16:02 UTC
Message-ID
<1224518540-23782-1-git-send-email-angavrilov@gmail.com>

It is a well known problem on msysgit that when ssh is started from git-gui during a fetch, any situations where it normally displays a prompt to the user cause it to hang silently. It is even worse than the situation on Linux, where the prompts appear on the terminal that started the GUI.

This combination of 3 patches aims to eliminate this problem. One of them changes a flag that is used to spawn the ssh executable, to make it recognize that it does not have a valid controlling console. The other two add features to git-gui that make ssh usage more convenient, including a simple implementation of an SSH_ASKPASS program.

When the patches are applied, all SSH prompts in msysgit appear in a GUI dialog box in the middle of the screen. Additionally, it is possible to view or create an OpenSSH key pair directly from git-gui.

Note: This was already posted to the msysgit list. The only differences
      are that git-gui now sets a more evidently fake value for DISPLAY,
      and the last patch has been acked.
GIT-GUI:
	git-gui: Add a dialog that shows the OpenSSH public key.
	---
	 git-gui.sh     |    4 ++
	 lib/sshkey.tcl |  126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	 2 files changed, 130 insertions(+), 0 deletions(-)
	 create mode 100644 lib/sshkey.tcl
	git-gui: Add a simple implementation of SSH_ASKPASS.
	---
	 Makefile         |    2 ++
	 git-gui.sh       |   12 ++++++++++++
	 git-gui--askpass |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	 3 files changed, 73 insertions(+), 0 deletions(-)
	 create mode 100755 git-gui--askpass
CORE(MINGW):
	Windows: Make OpenSSH properly detect tty detachment.
	---
	 compat/mingw.c |    8 ++++++--
	 1 files changed, 6 insertions(+), 2 deletions(-)
Next: Alexander Gavrilov
Message 1 of 4 in “Fix OpenSSH & Git-Gui integration in msysgit”
  1. 0/3 Fix OpenSSH & Git-Gui integration in msysgitAlexander Gavrilov, Oct 20, 2008
  2. 1/3 git-gui: Add a dialog that shows the OpenSSH public key.Alexander Gavrilov, Oct 20, 2008
  3. 2/3 git-gui: Add a simple implementation of SSH_ASKPASS.Alexander Gavrilov, Oct 20, 2008
  4. 3/3 Windows: Make OpenSSH properly detect tty detachment.Alexander Gavrilov, Oct 20, 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.