On Wed, 25 May 2011 13:45:43 +0200 Rémi Vanicat <[email protected]> wrote:
RV> wvxvw <[email protected]> writes: >> the repository I'm trying to pull or push from has password protected >> access. So, when I switch to magit-status buffer and then try to push >> or pull I get "Git is already running" message (not prompted for >> entering the password or anything). RV> Could you: RV> - Give us the content of the *magit-process* buffer when you have this error RV> message? RV> - Give us the result of running C-hv magit-process-connection-type? Hi, I wanted to suggest that on GNU Emacs Magit could use `auth-source-search' (see (info "auth") for details) to retrieve user passwords for such interactive prompts. auth-source.el works in XEmacs too; it's part of Gnus right now but can be unbundled if you want to use it there. `magit-password' can then be modified to use the matched string data (key name or user@host) for the search. Obviously a .netrc file could do this too, but it's much less secure. auth-source.el supports GPG-encrypted netrc files and can store and retrieve passwords in the very secure Secrets API. It can also prompt if the password is not found. Let me know if anyone is interested and I can provide a patch. Ted
