forked from lix-project/hydra
Ask nix-prefetch-git' to leave
.git' in the output.
This commit is contained in:
parent
cdfc96194c
commit
2b5ef66111
|
@ -238,7 +238,12 @@ sub fetchInputGit {
|
||||||
print STDERR "checking out Git input from $uri";
|
print STDERR "checking out Git input from $uri";
|
||||||
$ENV{"NIX_HASH_ALGO"} = "sha256";
|
$ENV{"NIX_HASH_ALGO"} = "sha256";
|
||||||
$ENV{"PRINT_PATH"} = "1";
|
$ENV{"PRINT_PATH"} = "1";
|
||||||
$ENV{"NIX_PREFETCH_GIT_CHECKOUT_HOOK"} = "git describe > .git-version";
|
|
||||||
|
# Checked out code often wants to be able to run `git
|
||||||
|
# describe', e.g., code that uses Gnulib's `git-version-gen'
|
||||||
|
# script. Thus, we leave `.git' in there.
|
||||||
|
$ENV{"NIX_PREFETCH_GIT_LEAVE_DOT_GIT"} = "1";
|
||||||
|
|
||||||
my $stdout; my $stderr;
|
my $stdout; my $stderr;
|
||||||
(my $res, $stdout, $stderr) = captureStdoutStderr(
|
(my $res, $stdout, $stderr) = captureStdoutStderr(
|
||||||
"nix-prefetch-git", $uri);
|
"nix-prefetch-git", $uri);
|
||||||
|
|
Loading…
Reference in a new issue