[Bug 697156] New: git plugin for trac does not work at all : TracError: GIT backend not available
https://bugzilla.novell.com/show_bug.cgi?id=697156 https://bugzilla.novell.com/show_bug.cgi?id=697156#c0 Summary: git plugin for trac does not work at all : TracError: GIT backend not available Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: phdm@macqel.be QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-2.1 Firefox/3.5.2 We have installed the trac, trac-plugin-git and trac-mercurial-plugin rpms, and we have a functional trac system. When I create a svn or mercurial repo, I can browse into it using trac, but for a git repository, trac keeps saying in the 'browse source' window, in the 'Last Change' column : TracError: GIT backend not available Message comes from the /usr/lib/python2.6/site-packages/tracext/git/git_fs.py file, but as I am no python expert, I don't know the cause. That seems to be related to getting and parsing the result of the 'git version' command. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697156 https://bugzilla.novell.com/show_bug.cgi?id=697156#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |herbert@graeber-clan.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697156 https://bugzilla.novell.com/show_bug.cgi?id=697156#c1 --- Comment #1 from Philippe De Muyter <phdm@macqel.be> 2011-06-01 15:45:03 UTC --- The patch found at http://trac-hacks.org/ticket/8682 and copied here fixes it. Is it possible to apply it to your distributed rpm ? Summary: PathOption transforms "/usr/bin/git" by following the symbolic links into "/usr/bin/git-receive-pack". When gitplugin tries to call git version it actually calls /usr/bin/git-receive-pack version which fails with : fatal: 'version' does not appear to be a git repository diff --git a/tracext/git/git_fs.py b/tracext/git/git_fs.py index c33536c..de04769 100644 --- a/tracext/git/git_fs.py +++ b/tracext/git/git_fs.py @@ -193,7 +193,7 @@ class GitConnector(Component): _git_fs_encoding = Option('git', 'git_fs_encoding', 'utf-8', "define charset encoding of paths within git repository") - _git_bin = PathOption('git', 'git_bin', '/usr/bin/git', + _git_bin = Option('git', 'git_bin', '/usr/bin/git', "path to git executable (relative to trac project folder!)") -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697156 https://bugzilla.novell.com/show_bug.cgi?id=697156#c2 Sven Uebelacker <sven@uebelacker.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sven@uebelacker.net Component|Development |Development AssignedTo|herbert@graeber-clan.de |pth@suse.com Product|openSUSE 11.3 |openSUSE 11.4 Target Milestone|--- |Final --- Comment #2 from Sven Uebelacker <sven@uebelacker.net> 2011-12-28 14:12:08 UTC --- Same here on openSUSE 11.4. Patch from Philippe's link works fine! Thanks. Providing link in trac-hacks Tickets * http://trac-hacks.org/ticket/8473 * http://trac-hacks.org/ticket/8682 to this one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697156 https://bugzilla.novell.com/show_bug.cgi?id=697156#c3 Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pth@suse.com |herbert@graeber-clan.de --- Comment #3 from Philipp Thomas <pth@suse.com> 2012-01-12 18:28:22 CET --- I do not maintain trac, so why the reassignment? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com