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: [22.214.171.124] 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 126.96.36.199 to 188.8.131.52 everything worked without changing anything.
How to reproduce
Using Git version 184.108.40.206 causes the error.
OS: Gentoo Linux