on iko/ghcjs-patch-master help sign in
Pass name argument through cleanGit (#437)
commit78526fca322936400e3c4240258cdaf4e788ff89 authorAlexander Bantyev <balsoft@balsoft.ru> dateSat 8 Feb 2020, 06:09 (7 years ago) parentb99d259
1 file changed+3−3
lib/clean-git.nix+3−3
lib/clean-git.nix+3−3
@@ -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
149149else
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 )