#12992 closed defect (cantfix)
git repo browser shows only comment and revisions but no files and diffs
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | plugin/git | Version: | 1.2.2 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Trac: 1.2.2
git: 2.16.2 and also 2.7
OS: Ubuntu xenial latest updates
If I want to browse my git repository the trac browser show only a revision and the latest commit message. It doesn't show any content (files). The same issue exists in the changeset view.
I found only the following log entry:
2018-03-11 16:01:55,228 Trac[PyGIT] DEBUG: /usr/bin/git exits with 128, dir: u'/path/to/.git', args: ls-tree ('-z', '-l', 'ba8ca6ac247', '--', ''), stderr: 'fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths\n'
Why is this a debug message and no error message?
Attachments (0)
Change History (7)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Component: | general → plugin/git |
|---|---|
| Keywords: | git browser source removed |
| Severity: | critical → normal |
comment:3 by , 8 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Duplicate of #12693. The issue has been fixed in Trac 1.2.1, r15541.
The git -z -r -M <sha1> <sha2> ... command is invoked from tags/trac-1.2.2/tracopt/versioncontrol/git/PyGIT.py@:1008-1014#L1001 but . is used instead of empty string in Trac 1.2.2.
comment:5 by , 8 years ago
OK, it was realy a installation bug. I found an old tracopt directory in /usr/local/lib/python2.7/dist-packages/ and removed it. Now it works correct.
comment:6 by , 8 years ago
Thank you for letting us know the resolution. It might help future users that encounter the same issue.
comment:7 by , 8 years ago
| Resolution: | duplicate → cantfix |
|---|
Thanks for the feedback. That is just an InstallationIssue.



If I resync a repository the following is logged:
2018-03-11 16:36:21,143 Trac[PyGIT] DEBUG: /usr/bin/git exits with 128, dir: u'/path/to/.git/', args: diff-tree ('-z', '-r' , '-M', 'f8f900f729b9b88', '384bcc65022e04', '--', ''), stderr: 'fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths\n'