Opened 16 years ago
Closed 16 years ago
#3654 closed defect (duplicate)
AssertionError when selecting browse source
Reported by: | Owned by: | Herbert Valerio Riedel | |
---|---|---|---|
Priority: | normal | Component: | GitPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I installed trac & trac-git from debian lenny: 0.11 of trac:
ii trac 0.11-3 Enhanced wiki and issue tracking system for ii trac-git 0.0.20080710-1 Git version control backend for Trac
I did GIT_DIR=trac/g1 git init and git push trac master:refs/heads/master to populate the git-repo. trac options:
[git] cached_repository = false git_bin = /usr/bin/git persistent_cache = false shortrev_len = 7
[trac] repository_dir = /home/nicosc/trac/g1/ repository_type = git
nicosc@ikdesk1:~/trac/g1$ git --version git version 1.5.6.5
I get this error:
11:00:49 Trac[git_fs] INFO: disabled CachedRepository for '/home/nicosc/trac/g1/' 11:00:49 Trac[main] ERROR: Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/browser.py", line 342, in process_request
rev_or_latest = rev or repos.youngest_rev
File "/usr/lib/python2.5/site-packages/trac/versioncontrol/api.py", line 264, in <lambda>
youngest_rev = property(lambda x: x.get_youngest_rev())
File "/usr/lib/python2.5/site-packages/gitplugin/git_fs.py", line 189, in get_youngest_rev
return self.git.youngest_rev()
File "/usr/lib/python2.5/site-packages/gitplugin/PyGIT.py", line 331, in youngest_rev
return self.rev_cache[0]
File "/usr/lib/python2.5/site-packages/gitplugin/PyGIT.py", line 316, in get_rev_cache
assert all(e is not None for e in self.rev_cache)
AssertionError
Any idea what I did wrong?
Attachments (0)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
comment:4 Changed 16 years ago by
Have you tried creating some entries in git repo ? If it is null sometimes it gives this assertion.
comment:5 Changed 16 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Looks like a duplicate of #4139
I get something comparable whenever it tries to resolve a rev:
Using Trac
0.11.2.1
As a result, nothing from GIT is available anymore.