wiki:GitLocationPlugin

Version 7 (modified by Ryan J Ollos, 8 years ago) (diff)

Use TracLinks.

Git Location Plugin

Description

This plugin adds the Git Location to the contextual navigation under Browse Source. Even though with Git this info is static, ie it doesn't change depending on which folder is browsed in Trac, it still comes in handy for making checkouts and such.

screen shot of git location plugin

Source

You can browser the source from github using Git, or check it out via:

$ git clone git://github.com/witsch/TracGitLocation.git

There is also a version on PyPi.

Installation

Follow the normal egg installation procedures.

Enable the plugin in the [components] section of your trac.ini file:

[components]
gitlocation.* = enabled

Finally, add a section to your project's trac.ini file:

[git]
repository_url = git@foo.com:foobar

Credits

Git Location is a shameless rip-off of Erik Rose' Subversion Location plugin and therefore also based on jhammel's SvnUrlsPlugin. Thanks, Erik & jhammel!

Attachments (1)

Download all attachments as: .zip