Skip to content

Commit 78526fc

Browse files
authored
Pass name argument through cleanGit (#437)
1 parent b99d259 commit 78526fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/clean-git.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# From https://github.com/NixOS/nix/issues/2944
22
{ lib, runCommand, git, cleanSourceWith }:
3-
{ src, subDir ? "" }:
3+
{ name ? null, src, subDir ? "" }:
44

55
# The function call
66
#
@@ -143,12 +143,12 @@ then
143143
filter = filter_from_list src whitelist;
144144
in
145145
cleanSourceWith {
146-
inherit src subDir filter;
146+
inherit name src subDir filter;
147147
}
148148

149149
else
150150
trace "gitSource.nix: ${toString src} does not seem to be a git repository,\nassuming it is a clean checkout." (
151151
cleanSourceWith {
152-
inherit src subDir;
152+
inherit name src subDir;
153153
}
154154
)

0 commit comments

Comments
 (0)