This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gitolite-Trac post-receive hook | |
# Script written by Nilesh Govindrajan; http://nileshgr.com | |
# Updated by giotti to support multiple repositories. | |
# Assumptions: | |
# 1: all trac environments are saved under one common directory | |
# defined in tracenv. e.g. /path/to/all/my/trac/envs | |
# 2: all repositories of an environment follow the naming-pattern | |
# <environment><delimeter><repository name>[<delimeter><repository name continued>...], | |
# e.g. someproject-somerepository, or someproject-somerepository-with-extra-text |