summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
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.