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.

  • What is the meaning of an asterisk appended to a TFS changeset number
  • Error with changeSet in jenkins pipeline (Error:java.io.NotSerializableException: hudson.plugins.git.GitChangeSetList)
  • Git: push a different changeset to heroku
  • How should I publish artifacts to an artifact repository to assure that I can easily get the right binary?
  • How to compare sets of changesets between 2 Mercurial branches?
  • Is there an equivalent of git-walk next / git-walk prev in hg?
  • 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!

  • GIT - unable to remove specific branch from remote repository
  • how to recreate old commits that got missing and unreachable at repository move
  • On Mac, where can I find git-http-backend?
  • Git internals: Modifying `git-merge-one-file` to not use working tree
  • Recovering Git repository from objects only
  • how to fix GIT error: object file is empty?
  • 2 Solutions collect form web for “How can I make a link to a git changeset in Trac when there is more than one repository and neither one is default?”

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

    I am using subversion, but asuming git changeset links work the sam way, you should use repo:changeset:af54b6d, where you must define repo in the [intertrac] section of the trac.ini. See also InterTrac

    Git Baby is a git and github fan, let's start git clone.