From f65c2821017423d97aa1ca9d46968fdd784a3e77 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 28 Feb 2024 00:29:20 +0200 Subject: gnosis-review-commit: Do not push when testing Make testing easier --- gnosis.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnosis.el') diff --git a/gnosis.el b/gnosis.el index b1527f0..bd62690 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1121,7 +1121,8 @@ NOTE-NUM: The number of notes reviewed in the session." (shell-command (format "%s %s %s" git "add" (shell-quote-argument "gnosis.db"))) (shell-command (format "%s %s %s" git "commit -m" (shell-quote-argument (format "Total notes for session: %d" note-num))))) - (when gnosis-vc-auto-push + (when (and gnosis-vc-auto-push + (not gnosis-testing)) (gnosis-vc-push)) (message "Review session finished. %d notes reviewed." note-num))) -- cgit v1.2.3