From 1eb6e7901b755ce95f2f3b5b4a73d024cfe8b811 Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Tue, 9 Sep 2014 23:46:44 -0700 Subject: [PATCH] Don't checkout HEAD in git-update-hook Since we check out a different HEAD right after cloning --- hooks/git-update-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/git-update-hook b/hooks/git-update-hook index e3c9c9b..41779cf 100755 --- a/hooks/git-update-hook +++ b/hooks/git-update-hook @@ -42,7 +42,7 @@ if [[ "$1" == "refs/heads/master" ]]; then unset GIT_DIR GIT_WORK_TREE # Create a linked clone of the source - git clone "$GIT_SRC" "$TMP_WORK_DIR" + git clone -n "$GIT_SRC" "$TMP_WORK_DIR" # Enter the clone cd "$TMP_WORK_DIR"