Correctly handling syncing of whole vault

This commit is contained in:
Silvano Cerza 2025-01-09 17:41:37 +01:00
parent 7b2b5ed1d1
commit 76c2b99092
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ export default class GithubClient {
repo,
dir.path,
branch,
`${localContentDir}/${dir.name}`,
localContentDir ? `${localContentDir}/${dir.name}` : dir.name,
),
),
);

View file

@ -108,7 +108,7 @@ export default class GitHubSyncSettingsTab extends PluginSettingTab {
.setName("Local content directory")
.setDesc(
`The local directory to sync, relative to the vault root.
Defaults to the repository name if not set.`,
If not set the whole vault will be synced.`,
)
.addText((text) =>
text