clone: run post-checkout hook when checking out
commitdfa7a6c579d75037b9dd5c3654a36d31c60f203c
authorJeff King <peff@peff.net>
Tue, 3 Mar 2009 05:37:51 +0000 (3 00:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2009 07:50:44 +0000 (2 23:50 -0800)
tree706498a98c9d358dfbb397e2a99aaec542afdd7e
parentf474c526618d5d1111b585a6344e012fb731d3fe
clone: run post-checkout hook when checking out

The mental model for clone is that the branch is "checked
out" (and it even says this in Documentation/git-clone.txt:
"...creates and checks out an initial branch"). Therefore it
is reasonable for users to expect that any post-checkout
hook would be run.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c
t/t5403-post-checkout-hook.sh