[fix] Only use ask password with GUI in Windows
This commit is contained in:
parent
28705b0484
commit
f0fe7b7252
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue