How do I setup multiple configs for gitolite - post-receive hook email notification?

516 Views Asked by At

I have the post-receive hook running with a configuration in gitolite that emails a group when any files change in a repo on a certain branch. Now, I have a request to setup email notification for a different "TO" when certain files change in the same repo. How do I set up multiple configs for the post-receive email hook? Also, how do I trigger a post-receive hook based on files that changed? I don't believe the hook has file info, right?

1

There are 1 best solutions below

4
On

You will have to inspect git log --name-only oldrev..newrev output to determine if any files that you are interested are changed.