Version 8 (modified by Herbert Valerio Riedel, 11 years ago) (diff)


Git Plugin for Trac


This is yet another plugin for Trac 0.10 which enables GIT to be used instead of Subversion for the trac:VersioningSystemBackend

Bugs/Feature Requests

As this is for now just a proof of concept implementation, it has quite some deficiencies, some of which exist as tickets already:

Regex expression for build configuration branches
Bug if git setting cached_repository=true
Sorting of changesets in build target overview
Usage of path in unit test error report

...and other potential issues which aren't ticket-tracked yet:

  • does not highlight sha1sums automatically
  • will only work with filenames not containing newlines
  • ...

Existing bugs and feature requests for GitPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:gitplugin here].


You can check out GitPlugin from here using Subversion, or browse the source with Trac.


Simply point your Trac instance to a local git repository:

repository_dir = /var/git/Test.git
repository_type = git

/!\ NOTE: "Test.git" needs to be the .git repo directory, not the directory that holds the .git

If installed globally, don't forget to enable the plugin:

gitplugin.* = enabled

See also

Similar project (aka TracGitPlugin), developed by sjain @ OLPC (One Laptop Per Child), running on their website:

What is the plan for integration of these two plugins? Is there a plan to merge the code?

Recent Changes

7757 by hvr on 2010-03-07 17:16:57
GitPlugin: ported code from TracMercurial in trac:changeset:6461
7756 by hvr on 2010-03-07 16:13:38
minor logging tweak
7755 by hvr on 2010-03-07 13:00:01
GitPlugin: decode git paths to unicode strings; fixes #5357


Author: Herbert Valerio Riedel

Attachments (7)

Download all attachments as: .zip