mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Ensure gitignore file syncs from remote
This commit is contained in:
parent
66b4f01810
commit
fefde46afa
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue