Skip to content

Commit

Permalink
Don't checkout HEAD in git-update-hook
Browse files Browse the repository at this point in the history
Since we check out a different HEAD right after cloning
  • Loading branch information
stuartpb committed Sep 10, 2014
1 parent 97bb43b commit 1eb6e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/git-update-hook
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1eb6e79

Please sign in to comment.