mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Fix crashes when unzipping repo on first sync from remote
This commit is contained in:
parent
b6be53ca16
commit
56bd6dee4c
1 changed files with 7 additions and 0 deletions
|
|
@ -206,6 +206,13 @@ export default class SyncManager {
|
|||
const targetPath =
|
||||
pathParts.length > 1 ? pathParts.slice(1).join("/") : entry.filename;
|
||||
|
||||
if (targetPath === "") {
|
||||
// Must be the root folder, skip it.
|
||||
// This is really important as that would lead us to try and
|
||||
// create the folder "/" and crash Obsidian
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
this.settings.syncConfigDir &&
|
||||
targetPath.startsWith(this.vault.configDir) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue