gitignoreFilter: don't use $path/.gitignore, only $path/../.gitignore
This commit is contained in:
parent
f8d5bdfe76
commit
cc23ac9d19
1 changed files with 3 additions and 3 deletions
|
|
@ -24,9 +24,9 @@ rec {
|
|||
basePathStr = toString basePath;
|
||||
in
|
||||
path: type: let
|
||||
localPath = removePrefix basePathStr (toString path);
|
||||
localPathElements = splitString "/" localPath;
|
||||
in parse-gitignore.runFilterPattern' (getPatterns patternsBelowP localPathElements)."/patterns" path type;
|
||||
localDirPath = removePrefix basePathStr (toString (dirOf path));
|
||||
localDirPathElements = splitString "/" localDirPath;
|
||||
in parse-gitignore.runFilterPattern' (getPatterns patternsBelowP localDirPathElements)."/patterns" path type;
|
||||
|
||||
getPatterns =
|
||||
patternTree: pathElems:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue