Modify

Opened 5 years ago

Closed 5 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

Description

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)
GIT 1.7.4.1
GIT 1.7.4.1
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

TracGit 0.11.0.2

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 490, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/timeline/web_ui.py", 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/changeset.py", line 871, in get_timeline_filters
    repositories = rm.get_real_repositories()
  File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/api.py", line 613, in get_real_repositories
    repos = self.get_repository(reponame)
  File "/usr/local/lib/python2.7/dist-packages/trac/versioncontrol/api.py", line 553, in get_repository
    repoinfo.copy())
  File "/usr/lib/python2.7/dist-packages/tracext/git/git_fs.py", line 162, in get_repository
    shortrev_len=self._shortrev_len)
  File "/usr/lib/python2.7/dist-packages/tracext/git/git_fs.py", line 179, in __init__
    git_bin=git_bin).getInstance()
  File "/usr/lib/python2.7/dist-packages/tracext/git/PyGIT.py", line 120, in __init__
    i = Storage(repo, log, git_bin)
  File "/usr/lib/python2.7/dist-packages/tracext/git/PyGIT.py", 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 5 years ago by Jun Omae

Component: SELECT A HACKGitPlugin
Resolution: invalid
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.