On Fri, 01 Jul 2011 16:08:20 +0200 Rémi Vanicat <[email protected]> wrote:
RV> I've just upload a branch of mine (ask-pass[1]) for testing a new way RV> for git to ask for password both for when git directly ask for them, and RV> when it is ssh that ask. RV> To use it under Linux you: RV> - copy the bin/magit-askpass somewhere in your pass. RV> - set the SSH_ASKPASS environment variable to it (in Emacs: RV> (setenv "SSH_ASKPASS" "magit-askpass") or M-x setenv .... RV> - don't forget to launch the Emacs server. RV> and it should work. Considering this is a one-liner: #+begin_src sh #!/bin/sh emacsclient -e "(magit-ask-password \"$@\")" #+end_src why not just write it to (make-temp-file "askpass" nil ".sh"), make that executable, and set SSH_ASKPASS to that file for the session? RV> - for this to work for windows, somework is needed (probably a .bat RV> script). I need a volunteer to do it. I'm attaching something I use at work, put together from the Git Extensions Windows package (for which I've filed some bugs similar to yours, see https://github.com/spdr870/gitextensions/issues/85) and msysgit. It uses RC4 to encrypt the saved secrets, all in Tcl. I'll follow this work with interest, thanks! Ted
wish-git-gui-askpass
Description: Tcl script
