From baff8abb73ed9533099d1dde5644262ada2fccbc Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Wed, 19 Jan 2022 22:00:30 -0600 Subject: [PATCH] Add the key first, then do a fetch Otherwise, we get 2 key queries --- lisp/org-config/my-org-misc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-config/my-org-misc.el b/lisp/org-config/my-org-misc.el index 186377a..ab4ed56 100644 --- a/lisp/org-config/my-org-misc.el +++ b/lisp/org-config/my-org-misc.el @@ -189,10 +189,10 @@ With a universal argument, prompt to specify which key." (lambda (&rest args) (message "Remember to ssh-add!"))) (add-hook 'git-auto-commit-mode-hook - #'rb/ssh-add) + #'gac-use-magit-fetch) (add-hook 'git-auto-commit-mode-hook - #'gac-use-magit-fetch) + #'rb/ssh-add) (add-hook 'git-auto-commit-mode-hook #'gac-after-save-func t t)