summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-28 00:29:20 +0200
committerThanos Apollo <[email protected]>2024-02-28 00:29:20 +0200
commitf65c2821017423d97aa1ca9d46968fdd784a3e77 (patch)
tree7c6d872c6e49a817dfc8295face39a6427b703a8 /gnosis.el
parentaa3c2f8f5815f01da1f2d6ce50c7dc6d24beb075 (diff)
gnosis-review-commit: Do not push when testing
Make testing easier
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el3
1 files changed, 2 insertions, 1 deletions
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)))