From cdfc96194c564bc283db037fe8d91dc05c294c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 18 Nov 2009 16:25:47 +0000 Subject: [PATCH] Use $NIX_PREFETCH_GIT_CHECKOUT_HOOK to produce a `.git-version' file. --- src/lib/Hydra/Helper/AddBuilds.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 77f377d3..99013ac8 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -238,6 +238,7 @@ sub fetchInputGit { print STDERR "checking out Git input from $uri"; $ENV{"NIX_HASH_ALGO"} = "sha256"; $ENV{"PRINT_PATH"} = "1"; + $ENV{"NIX_PREFETCH_GIT_CHECKOUT_HOOK"} = "git describe > .git-version"; my $stdout; my $stderr; (my $res, $stdout, $stderr) = captureStdoutStderr( "nix-prefetch-git", $uri);