diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2020-12-10 20:34:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 20:34:54 +0000 |
commit | 4eb94d0ca13c532cf62a25e412017eb4408ff275 (patch) | |
tree | 2a86d3910b7626dfda1b509e3a0a0f324f6b80dd /pkgs/build-support | |
parent | 248f0bfe6df41d0c6aa291b987f5c57bc7bbb530 (diff) | |
parent | a5a383a389bfcaf8b0c3ac038cf8701d9e14dda9 (diff) | |
download | nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar.gz nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar.bz2 nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar.lz nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar.xz nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.tar.zst nixpkgs-4eb94d0ca13c532cf62a25e412017eb4408ff275.zip |
Merge pull request #94960 from symphorien/gitignore
nix-gitignore: filter-out .git
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/nix-gitignore/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/nix-gitignore/default.nix b/pkgs/build-support/nix-gitignore/default.nix index fba09adc2d4..abfe67ea430 100644 --- a/pkgs/build-support/nix-gitignore/default.nix +++ b/pkgs/build-support/nix-gitignore/default.nix @@ -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 |