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
commit 4eb94d0ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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