Oups, not possible. `$commit->getRepository()` does not exist.

I think we could add it. I will need that for json export.