summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-18 10:06:57 +0200
committerThanos Apollo <[email protected]>2024-02-18 10:06:57 +0200
commit8b0ad190a4333f607225fdc756f4ce9646c23b7b (patch)
tree647a4e3cf6ebc98b32a665ddfed3b2715e41a14c /gnosis.el
parent60f61953655005fac6efd5d1732208be931a6623 (diff)
gnosis-git-pull: Refresh gnosis-db after pull
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 79df9d8..ff22705 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1050,7 +1050,9 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face."
"Pull change from git repository in DIR."
(interactive)
(let ((default-directory dir))
- (gnosis-git--process "pull")))
+ (gnosis-git--process "pull")
+ ;; Refresh gnosis-db after pull
+ (setf gnosis-db (emacsql-sqlite-open (expand-file-name "gnosis.db" gnosis-dir)))))
(defun gnosis-review-commit (note-num)
"Commit review session on git repository.