Scripts for updating redmine repo info on git post-receive hook in gitlab (also works for any git repo).
This pair of scripts allows you to execute any shell commands on remote server when git post-receive hook is fired. The main goal is to notify redmine about changes in git repositories, which are connected to redmine projects. But you can use it for any other tasks :)
- Place a "post-receive" shell script in your repo .git/hooks/ directory (or use symlink in case of more than one repo) on repository server
- Place config.ini and pr-hook.php in one place on redmine server accessible via http
- Edit "post-receive" shell script and change url to one, configured for step 2
- Edit config.ini to meet your need
Git repositories on redmine host need to be already initialized.