From 919b44d08d340389fcb1ad3ea72099fe61883696 Mon Sep 17 00:00:00 2001 From: Gregor Grigorjan Date: Fri, 4 Oct 2024 12:52:47 +0300 Subject: [PATCH] tweak(emacs): forge: only `forge-pull` when forge is configured --- modules/nixos/programs/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nixos/programs/emacs/init.el b/modules/nixos/programs/emacs/init.el index deb9c769..dbbeb336 100644 --- a/modules/nixos/programs/emacs/init.el +++ b/modules/nixos/programs/emacs/init.el @@ -650,7 +650,8 @@ (defun magit-auto-fetch () (interactive) (magit-fetch-all ()) - (forge-pull)) + (when (forge-buffer-repository) + (forge-pull))) (advice-add 'magit-status :after #'magit-auto-fetch) :custom (magit-no-confirm '(set-and-push stage-all-changes unstage-all-changes))