Changes between Version 13 and Version 14 of TracRepositoryAdmin
- Timestamp:
- Mar 2, 2011, 1:37:42 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRepositoryAdmin
v13 v14 123 123 }}} 124 124 125 Git hooks can be used in the same way for explicit syncing of git repositories. Try in `.git/hooks/post-commit` 126 {{{ 127 REV=$(git rev-parse HEAD) 128 trac-admin /path/to/env changeset added <my-repository> $REV 129 }}} 130 125 131 The Unix variants above assume that the user running the Subversion commit has write access to the Trac environment, which is the case in the standard configuration where both the repository and Trac are served by the web server. If you access the repository through another means, for example `svn+ssh://`, you may have to run `trac-admin` with different privileges, for example by using `sudo`. 126 132