Repository.xs: git_repository_state() does not return an error code, only the state