mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
fix: always trigger removing file of separate git dir
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -31,6 +31,7 @@ strings.csv
|
||||
.calva
|
||||
resources/electron.js
|
||||
.clj-kondo/.cache
|
||||
.clj-kondo/babashka/sci
|
||||
.lsp/
|
||||
/libs/dist/
|
||||
charlie/
|
||||
@@ -38,4 +39,4 @@ charlie/
|
||||
/.preprocessor-cljs
|
||||
docker
|
||||
android/app/src/main/assets/capacitor.plugin.json
|
||||
ios/App/App/capacitor.config.json
|
||||
ios/App/App/capacitor.config.json
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
p (.join path graph-path ".git")]
|
||||
(when (and (fs/existsSync p)
|
||||
(.isFile (fs/statSync p)))
|
||||
(let [content (.toString (fs/readFileSync p))
|
||||
(let [content (string/trim (.toString (fs/readFileSync p)))
|
||||
dir-path (string/replace content "gitdir: " "")]
|
||||
(when (and content
|
||||
(string/starts-with? content "gitdir:")
|
||||
|
||||
Reference in New Issue
Block a user