fix: error while backup global config under windows

This commit is contained in:
Andelf
2022-11-17 16:18:56 +08:00
committed by Gabriel Horner
parent 6eab0d7f30
commit 1caba0359f

View File

@@ -88,7 +88,7 @@
(string/trim (or (state/get-default-journal-template) "")))
(= (string/trim content) "-")
(= (string/trim content) "*")))
(handle-add-and-change! repo path content db-content mtime true))
(handle-add-and-change! repo path content db-content mtime (not global-dir))) ;; no backup for global dir
(and (= "unlink" type)
(db/file-exists? repo path))