[fix] Only use ask password with GUI in Windows

This commit is contained in:
Tu Do 2015-04-12 00:22:37 +07:00 committed by syl20bnr
parent 28705b0484
commit f0fe7b7252

View file

@ -222,7 +222,8 @@ which require an initialization must be listed explicitly in the list.")
magit-completing-read-function 'magit-ido-completing-read)
;; On Windows, we must use Git GUI to enter username and password
;; See: https://github.com/magit/magit/wiki/FAQ#windows-cannot-push-via-https
(setenv "GIT_ASKPASS" "git-gui--askpass")
(when (eq window-system 'w32)
(setenv "GIT_ASKPASS" "git-gui--askpass"))
(evil-leader/set-key
"gb" 'magit-blame-mode
"gl" 'magit-log