Git 1.8 not working with Git plugin
|Reported by:||Owned by:|
I've tried to set up Trac (deployed with lighttpd via FastCGI) with Git (managed by gitolite), but the source code browser always showed different error messages, depending on the settings:
If I've set these options
cached_repository = false persistent_cache = false
I got an error saying
No changeset None in the repository
If I set them to false, the error message said
No changeset None in the repository.
Resyncing the repository with trac admin did not really work:
Resyncing repository history for testing... 0 revisions cached. Done.
Here are some lines from the error log:
2013-05-02 00:20:52,274 Trac[PyGIT] DEBUG: PyGIT.Storage instance 3358333124176 constructed 2013-05-02 00:20:52,274 Trac[PyGIT] DEBUG: requested weak PyGIT.Storage instance 3358333124176 for '/var/lib/gitolite/repositories/gitolite-admin.git' 2013-05-02 00:20:52,274 Trac[git_fs] DEBUG: disabled CachedRepository for '/var/lib/gitolite/repositories/gitolite-admin.git' 2013-05-02 00:20:52,276 Trac[PyGIT] DEBUG: triggered rebuild of commit tree db for 3358333124176 2013-05-02 00:20:52,316 Trac[PyGIT] DEBUG: rebuilt commit tree db for 3358333124176 with 0 entries (took 39.8 ms) 2013-05-02 00:20:52,333 Trac[main] WARNING: [220.127.116.11] HTTPNotFound: 404 No such node (No node conf/gitolite.conf at revision HEAD)
Luckily this Japanese Blog (tranlated with Google Translator) pointed out this is caused by using Git version 1.8.
After downgrading from Git 18.104.22.168 to 22.214.171.124 everything worked without changing anything.
How to reproduce
Using Git version 126.96.36.199 causes the error.
OS: Gentoo Linux