Please sign in to comment.
Hopefully fix GitPlugin's broken caching behavior.
This hopefully fixes all the "no such changeset" errors in Trac. Basically trac-admin's changeset added event updates trac-admin's GitPlugin's cache (and Trac's persistent cache), but Trac that's running under Apache is a separate process and thus GitPlugin's non-peristent cache goes stale without GitPlugin knowing it. Trac's persistent cache contains a new changeset, Trac attempts to construct a CachedChangeset, which calls normalize_rev, which in turn calls verifyrev. This fix causes verifyrev to rebuild GitPlugin's cache if git rev-parse returns a valid SHA that isn't in the current cache.
- Loading branch information...