Create a new repo.Checkout() overload which accepts a Commit object