Search code examples
githyperlinktracchangeset

How can I make a link to a git changeset in Trac when there is more than one repository and neither one is default?


While working with just one associated repository, I was quite used to reference changesets in my Trac tickets using the changeset keyword and the commit's SHA1 hash like this:

[changeset:af54b6d]

which would give me an hyperlink to the corresponding changeset.

Now I'm working on a project where the same Trac environment (version 0.12) has multiple git repositories associated with it and no one is - and shouldn't be - the default, so the above syntax doesn't work anymore.

Can anyone please help me figuring out how to refer to a changeset in a specific repository?

Thank you!


Solution

  • If your repository is named repo, you can link to the changeset with [changeset:af54b6d/repo].