Edgewall Software
Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12992 closed defect (cantfix)

git repo browser shows only comment and revisions but no files and diffs

Reported by: therochworks@… 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 anonymous, 7 years ago

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'

comment:2 by Jun Omae, 7 years ago

Component: generalplugin/git
Keywords: git browser source removed
Severity: criticalnormal

comment:3 by Jun Omae, 7 years ago

Resolution: duplicate
Status: newclosed

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:4 by Ryan J Ollos, 7 years ago

Since reporter claims Trac 1.2.2, it's a possible InstallationIssue.

comment:5 by anonymous, 7 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 Ryan J Ollos, 7 years ago

Thank you for letting us know the resolution. It might help future users that encounter the same issue.

comment:7 by Jun Omae, 7 years ago

Resolution: duplicatecantfix

Thanks for the feedback. That is just an InstallationIssue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.