Opened 6 years ago

Closed 6 years ago

#12859 closed defect (cantfix)

GitError: GIT control files not found, maybe wrong directory?

Reported by: gguard Owned by:
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release:


How to Reproduce

While doing a GET operation on /admin, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': None, 'panel_id': None, 'path_info': None}

User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

System Information

Trac 1.0
Trac 1.0
Babel 0.9.6
Docutils 0.8.1
Genshi 0.6 (with speedups)
MySQL server: "5.6.27", client: "5.5.37", thread-safe: 1
MySQLdb 1.2.3
Pygments 1.5
Python 2.7.3 (default, Feb 27 2014, 19:37:34)
[GCC 4.7.2]
Python 2.7.3 (default, Feb 27 2014, 19:37:34)
[GCC 4.7.2]
pytz 2011k
pytz 2011k
setuptools 0.6
setuptools 0.6
Subversion 1.7.5 (r1336830)
jQuery 1.7.2

Enabled Plugins

TracAccountManager 0.3.2

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/", line 497, in _dispatch_request
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/", line 179, in dispatch
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/web/", line 325, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/versioncontrol/", line 343, in pre_process_request
    repo = self.get_repository(reponame)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg/trac/versioncontrol/", line 553, in get_repository
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 244, in get_repository
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 360, in __init__
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 139, in __init__
    i = Storage(repo, log, git_bin, git_fs_encoding)
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 252, in __init__
    raise GitError("GIT control files not found, maybe wrong directory?")
GitError: GIT control files not found, maybe wrong directory?

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Ryan J Ollos

Component: SELECT A HACKGitPlugin
Resolution: cantfix
Status: newclosed

You have multiple problems.

  • Uninstall TracGit and enabled tracopt.versioncontrol.git.*. Trac supports Git as a version control backend since 1.0.
  • Upgrade your Trac installation, the latest is 1.0.12, or append /.git to your Git repository path(s). See trac:#11297 for more info.

This is a InstallationIssue and for future reference such problems should be directed to the MailingList.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.