Opened 4 years ago

Last modified 3 years ago

#8354 new defect

Invalid changeset link in ticket comments is produced by the post-receive-hook for multiple git repositories

Reported by: RHautz Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


I have set up multiple bare git repositories in one trac environment, each with 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 <Repo_Name>
where Repo_Name is the same name given to the repo through trac-admin

The attached patch to is using that to generate working wikilinks.

Attachments (1)

Change History (1)

Add Comment

Modify Ticket

as new The owner will remain hvr.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.