Since we're expecting a libgit2 error here, I'd say we should use `int`.