add getRepository method on Commit