git - How to track post-receive hook in gitosis -


is there way of managing post-receive hook via gitosis-admin changes can tracked?

i gitosis on remote server couple of repositories can push to. 2 repositories setup via gitosis-admin , each have different post-receive hook, setup manually ssh'ing remote server. strikes me these should in git somewhere changes them can tracked.

you can't track hookfiles themselves, security reasons. can sneak around that:

make git repo hookfiles , check out on server. symlink hookfiles in repos need them. might want add hook action pull on checkout of hook repo, if don't push directly it.

make sure tightly control access repo, because if attacker can push it, you're toast.


Comments