From fefde46afab3a45fa239b8d42ab0cbaafe5bea0b Mon Sep 17 00:00:00 2001 From: tiagoarroz Date: Mon, 4 May 2026 17:07:38 +0100 Subject: [PATCH] Ensure gitignore file syncs from remote --- src/sync-manager.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sync-manager.ts b/src/sync-manager.ts index da5c643..0ac68d1 100644 --- a/src/sync-manager.ts +++ b/src/sync-manager.ts @@ -320,7 +320,12 @@ export default class SyncManager { return; } - if (targetPath.split("/").last()?.startsWith(".")) { + // O .gitignore também é um ficheiro escondido, mas tem de ser + // descarregado para manter as mesmas regras em todos os cofres. + if ( + targetPath !== GITIGNORE_FILE_NAME && + targetPath.split("/").last()?.startsWith(".") + ) { // We must skip hidden files as that creates issues with syncing. // This is fine as users can't edit hidden files in Obsidian anyway. await this.logger.info("Skipping hidden file", targetPath);