Opened 4 years ago

Closed 4 years ago

#10337 closed defect (invalid)

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

Reported by: trac Owned by: anonymous
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


How to Reproduce

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

(please provide additional details here)

Request parameters:


User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

System Information

Trac 1.0beta1
Babel 0.9.6
Genshi 0.6 (without speedups)
mod_wsgi 3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
Pygments 1.4
pysqlite 2.6.0
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:37:12)
[GCC 4.5.2]
pytz 2010b
setuptools 0.6
SQLite 3.7.4
jQuery 1.7.2

Enabled Plugins


Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/web/", line 490, in _dispatch_request
  File "/usr/local/lib/python2.7/dist-packages/trac/web/", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/timeline/", line 153, in process_request
    available_filters += event_provider.get_timeline_filters(req) or []
  File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/", line 871, in get_timeline_filters
    repositories = rm.get_real_repositories()
  File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/", line 613, in get_real_repositories
    repos = self.get_repository(reponame)
  File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/", line 553, in get_repository
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 162, in get_repository
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 179, in __init__
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 120, in __init__
    i = Storage(repo, log, git_bin)
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 194, 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 4 years ago by jun66j5

  • Component changed from SELECT A HACK to GitPlugin
  • Resolution set to invalid
  • Status changed from new to closed

It seems that the specified directory is not Git repository. Make sure that the directory is Git repository.

And, Trac 1.0beta1 or later have built-in support for Git. You don't need the GitPlugin. See #T10594.

Add Comment

Modify Ticket

as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.