문제

I'm using trac v1 (which includes the Git plugin) on linux to trac multiple git repositories within the same trac installation. When I add a new repository to this trac installation it tells me:

"You should also set up a post-commit hook on the repository to call trac-admin $ENV changeset added "kontrolla-sample" $REV for each committed changeset."

Can someone show an example of how the post-commit file should be edited to achieve this?

도움이 되었습니까?

해결책

See http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync for examples and details about what is needed from a post-commit hook script (or more accurately, post-receive for git). Essentially, the script needs to call trac-admin /your/trac/path/here changeset added "(default)" <revision>. If the commit is to a repository other than the default repo, change (default) to the name of the repository.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top