Opened 14 years ago
Closed 10 years ago
#8354 closed defect (wontfix)
Invalid changeset link in ticket comments is produced by the post-receive-hook for multiple git repositories
Reported by: | Roland Hautz | Owned by: | Herbert Valerio Riedel |
---|---|---|---|
Priority: | normal | Component: | GitPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I have set up multiple bare git repositories in one trac environment, each with http://trac-hacks.org/attachment/wiki/GitPlugin/trac-post-receive-hook.3.py enabled as hook.
The generated wikilinks to changesets are not working. They are looking like:
commit <a class="missing changeset" rel="nofollow" title="Repository '' not found">051611</a>
I don't know wether there's something broken or handling of that case is still missing.
As work around I treat each git repo with
git config --add trac.name <Repo_Name>
where Repo_Name is the same name given to the repo through trac-admin
The attached patch to trac-post-receive-hook.3.py is using that trac.name to generate working wikilinks.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | trac.name.patch added |
---|
comment:1 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
GitPlugin is deprecated. Please upgrade to Trac 1.0 and use TracGit.
patch to http://trac-hacks.org/attachment/wiki/GitPlugin/trac-post-receive-hook.3.py