mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nix-gitignore: filter-out .git
This commit is contained in:
parent
8e2b14aceb
commit
a5a383a389
@ -148,10 +148,10 @@ in rec {
|
|||||||
'');
|
'');
|
||||||
|
|
||||||
withGitignoreFile = patterns: root:
|
withGitignoreFile = patterns: root:
|
||||||
lib.toList patterns ++ [(root + "/.gitignore")];
|
lib.toList patterns ++ [ ".git" ] ++ [(root + "/.gitignore")];
|
||||||
|
|
||||||
withRecursiveGitignoreFile = patterns: root:
|
withRecursiveGitignoreFile = patterns: root:
|
||||||
lib.toList patterns ++ [(compileRecursiveGitignore root)];
|
lib.toList patterns ++ [ ".git" ] ++ [(compileRecursiveGitignore root)];
|
||||||
|
|
||||||
# filterSource derivatives
|
# filterSource derivatives
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user