#11430 closed defect (cantfix)
GitError: GIT control files not found, maybe wrong directory?
Reported by: | admin | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11.7 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /admin/general/plugin
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'cat_id': u'general', 'panel_id': u'plugin', 'path_info': None}
System Information
Trac | 0.11.7
|
Python | 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
|
setuptools | 0.6
|
MySQL | server: "5.1.41-3ubuntu12.8", client: "5.1.41", thread-safe: 1
|
MySQLdb | 1.2.2
|
Genshi | 0.5.1
|
mod_python | 3.3.1
|
Pygments | 1.2.2
|
GIT | 1.7.0.4
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 176, in dispatch chosen_handler) File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 296, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "/usr/lib/python2.6/dist-packages/trac/versioncontrol/api.py", line 86, in pre_process_request self.get_repository(req.authname).sync() File "/usr/lib/python2.6/dist-packages/trac/versioncontrol/api.py", line 157, in get_repository repos = self._connector.get_repository(rtype, rdir, authname) File "/usr/lib/python2.6/dist-packages/tracext/git/git_fs.py", line 159, in get_repository shortrev_len=self._shortrev_len) File "/usr/lib/python2.6/dist-packages/tracext/git/git_fs.py", line 176, in __init__ git_bin=git_bin).getInstance() File "/usr/lib/python2.6/dist-packages/tracext/git/PyGIT.py", line 114, in __init__ i = Storage(repo, log, git_bin) File "/usr/lib/python2.6/dist-packages/tracext/git/PyGIT.py", line 189, 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 (7)
follow-up: 3 comment:1 by , 11 years ago
Resolution: | → cantfix |
---|---|
Status: | new → closed |
follow-up: 4 comment:2 by , 11 years ago
Err… tracext
is part of Trac, so this is the bundled GIT component, not a plugin. It's still probably an InstallationIssue, though.
comment:3 by , 11 years ago
follow-ups: 5 6 comment:4 by , 11 years ago
Replying to rblank:
Err…
tracext
is part of Trac, so this is the bundled GIT component, not a plugin.
Trac bundles git component since 1.0 in tracopt.versioncontrol.git
, not tracext
. Also, it seems PyGIT.py@54912e7ac0 in gitplugin is used and the file is 5 years old.
comment:5 by , 11 years ago
Replying to jomae:
Trac bundles git component since 1.0 in
tracopt.versioncontrol.git
, nottracext
.
Oh! You're right of course, tracopt
not tracext
. Never mind :)
follow-up: 7 comment:6 by , 11 years ago
Replying to jomae:
Replying to rblank:
Err…
tracext
is part of Trac, so this is the bundled GIT component, not a plugin.Trac bundles git component since 1.0 in
tracopt.versioncontrol.git
, nottracext
. Also, it seems PyGIT.py@54912e7ac0 in gitplugin is used and the file is 5 years old.
<ot> Have you ever considered a major refactoring in Git plugin to use dulwich instead of PyGIT ? </ot>
comment:7 by , 11 years ago
Replying to Olemis Lang <olemis+trac@…>:
Have you ever considered a major refactoring in Git plugin to use dulwich instead of PyGIT ?
We cannot use dulwich because the license is GPLv2+. But I've worked to use pygit2 in log:jomae.git:pygit2. See also TracDev/Performance/Git.
A PluginIssue and an InstallationIssue for th:GitPlugin. Make sure your web server can read the git repository.