Posted Aug 17, 2009 17:13 UTC (Mon) by dajoe13 (guest, #60297)
[Link]
I have not been able to find out how to commit and push a hook to my git server archive for everyone's benefit. The githooks man page does not descrive this and I have not turned up any fruitful google searches on the topic.
I am trying to add a post-checkout hook. I also noticed that the post-checkout sample does not exist when I init a new archive. I am running git version 1.6.0.2.
Regards,
Joe
Howto checkin git hook
Posted Aug 17, 2009 20:22 UTC (Mon) by nix (subscriber, #2304)
[Link]
You can't push hooks, just as with everyting else under .git/: it would be
dangerous, if you think about it, because hooks are executable code!
You have to use some other mechanism (ssh, whatever) to install it at the
server end.