Browse Source

git: should compare ignored-files with disk content

Tienson Qin 4 năm trước cách đây
mục cha
commit
cd853b5864
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/main/frontend/fs/watcher_handler.cljs

+ 1 - 1
src/main/frontend/fs/watcher_handler.cljs

@@ -58,7 +58,7 @@
                (not= (string/trim content)
                      (string/trim (or (db/get-file repo path) "")))
                (not (string/includes? path "logseq/pages-metadata.edn"))
-               (not= (get @ignore-files path) db-content))
+               (not= (get @ignore-files path) content))
           (p/let [
                   ;; save the previous content in Logseq first and commit it to avoid
                   ;; any data-loss.