diff options
author | Simon Hengel <sol@typeful.net> | 2014-05-16 15:21:22 +0800 |
---|---|---|
committer | Simon Hengel <sol@typeful.net> | 2014-05-16 15:22:28 +0800 |
commit | 26fb26e3311b5a80b0bb635aa4cc4855aff18b30 (patch) | |
tree | 3b0b9215ea90e87191114fefe148d30ef112c328 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | 1cf51eb3fcfec9b41d85a57397ed404578c0ebc0 (diff) |
nix-prefetch-git: Print git revision
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 6e79f82eae86..d4819574acb8 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -217,6 +217,8 @@ clone_user_rev() { fi;; esac + echo "git revision is $(cd $dir && git rev-parse $rev)" + # Allow doing additional processing before .git removal eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK" if test -z "$leaveDotGit"; then |