We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99d259 commit 78526fcCopy full SHA for 78526fc
lib/clean-git.nix
@@ -1,6 +1,6 @@
1
# From https://github.com/NixOS/nix/issues/2944
2
{ lib, runCommand, git, cleanSourceWith }:
3
-{ src, subDir ? "" }:
+{ name ? null, src, subDir ? "" }:
4
5
# The function call
6
#
@@ -143,12 +143,12 @@ then
143
filter = filter_from_list src whitelist;
144
in
145
cleanSourceWith {
146
- inherit src subDir filter;
+ inherit name src subDir filter;
147
}
148
149
else
150
trace "gitSource.nix: ${toString src} does not seem to be a git repository,\nassuming it is a clean checkout." (
151
152
- inherit src subDir;
+ inherit name src subDir;
153
154
)
0 commit comments