Fix cleanGit for submodules of submodules (#413)
Repos that have submodules with submodules will have a `.git` file
that references the relative location of the submodules dir in the
`.git/modules`. Without this file the contents of submodules of
submodules are excluded from the `cleanGit` output.
commit674cdf215e2ba589be26a1cf8b4daa664717a350
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateThu 23 Jan 2020, 17:19 (7 years ago)
parentba28de5
lib/clean-git.nix+1−1
@@ -108,7 +108,7 @@ then
108108 # and use that to filter directory tree here
109109 ||
110110 lib.any (i: (lib.hasSuffix i path)) [
111− ".gitmodules" ".git/config" ".git/index" ".git/HEAD" ".git/objects" ".git/refs" ] ||
111+ "/.git" ".gitmodules" ".git/config" ".git/index" ".git/HEAD" ".git/objects" ".git/refs" ] ||
112112 (lib.strings.hasInfix ".git/modules/" path &&
113113 lib.any (i: (lib.hasSuffix i path)) [
114114 "config" "index" "HEAD" "objects" "refs" ]);