We should assert that `repo` is not nil.