Merge pull request #94960 from symphorien/gitignore

nix-gitignore: filter-out .git
This commit is contained in:
Guillaume Girol
2020-12-10 20:34:54 +00:00
committed by GitHub

View File

@@ -150,10 +150,10 @@ in rec {
'');
withGitignoreFile = patterns: root:
lib.toList patterns ++ [(root + "/.gitignore")];
lib.toList patterns ++ [ ".git" ] ++ [(root + "/.gitignore")];
withRecursiveGitignoreFile = patterns: root:
lib.toList patterns ++ [(compileRecursiveGitignore root)];
lib.toList patterns ++ [ ".git" ] ++ [(compileRecursiveGitignore root)];
# filterSource derivatives