Skip to content

Commit

Permalink
Merge branch 'jk/clone-post-checkout'
Browse files Browse the repository at this point in the history
* jk/clone-post-checkout:
  githooks documentation: post-checkout hook is also called after clone
  • Loading branch information
Junio C Hamano committed Mar 28, 2009
2 parents 3f7d992 + 24c1155 commit 869e13e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/githooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ indicating whether the checkout was a branch checkout (changing branches,
flag=1) or a file checkout (retrieving a file from the index, flag=0).
This hook cannot affect the outcome of 'git-checkout'.

It is also run after 'git-clone', unless the --no-checkout (-n) option is
used. The first parameter given to the hook is the null-ref, the second the
ref of the new HEAD and the flag is always 1.

This hook can be used to perform repository validity checks, auto-display
differences from the previous HEAD if different, or set working dir metadata
properties.
Expand Down

0 comments on commit 869e13e

Please sign in to comment.