git hooks : is there a clone hook?
Solution 1:
ok, one way to do this is to use the clone --template
option.
Specify the location where the client side hooks will be stored as value to the --template
switch. The hooks are copied to the clone, and the post-checkout hook is fired immediately!
Solution 2:
When you clone a remote repository, you can't run any client-side hooks because hooks are local to your working copy, and you're creating one from scratch. When you pull new changes from a remote repository, git will run your local post-merge
hook if it exists.
There is nothing run on the server as the result of a pull operation. A push operation will trigger the servers's update
and post-update
hooks.
See the Git Book for more information.
Solution 3:
No, there isn't any clone hook.