TIL: Dulwich is not reentrant. Use one repo instance per thread