mirror of
https://github.com/shumadrid/obsidian-git-changelog.git
synced 2026-07-22 05:42:16 +00:00
fix: prevent excluding the git root folder from changelog
This commit is contained in:
parent
53a7b0335f
commit
f267afbea3
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ function isAbsoluteGitIgnoreRuleAboveRoot({
|
|||
}: {
|
||||
absoluteGitIgnoreRule: string;
|
||||
}): boolean {
|
||||
return absoluteGitIgnoreRule.startsWith('/../');
|
||||
return (
|
||||
absoluteGitIgnoreRule.startsWith('/../') ||
|
||||
// Case when path is the root folder itself
|
||||
absoluteGitIgnoreRule.startsWith('//')
|
||||
);
|
||||
}
|
||||
|
||||
export function addExcludeMenuItem({
|
||||
|
|
|
|||
Loading…
Reference in a new issue