I am a little confused about executing the post-checkout hook after
running git clone. The documentation says that it runs as long as the -
n option is not invoked. I tried to do a simple test with a print
statement to a log file in the original repository. The log file is
updated when I do a git checkout within the original repository. I try
to clone the original repository and the log file does not get
updated. I am assuming that the original post-checkout is executed
because the clone command does not copy the hooks from the original
repository. I looked at the code and do see a line for executing a
post-checkout within the clone  builtin-clone.c. Does anyone have an
example of how to use this feature?

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to