From 26fb26e3311b5a80b0bb635aa4cc4855aff18b30 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Fri, 16 May 2014 15:21:22 +0800 Subject: [PATCH] nix-prefetch-git: Print git revision --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 ++ 1 file changed, 2 insertions(+) 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