瀏覽代碼

git: should compare ignored-files with disk content

Tienson Qin 4 年之前
父節點
當前提交
cd853b5864
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.