User Configured pre-receive or post-receive Hooks Break After Upgrading Stash
User configured pre or post receive hooks are not working after upgrading Stash.
If you added a pre-receive or post-receive hook, upon upgrading to Stash 2.0 or later, these will be moved to
We replace the
<STASH_HOME>/data/repositories/<NNN>/hooks/post-receive hook with our own that will call out to all the hooks in the
.../hooks/post-recieve.d directories in order.
NNN is the internal repository id.
If your custom hook references other scripts using relative path names (e.g.
../dir/foo.sh) these will break and the hook will stop working.