`git_error` is actually a typedef'd type for the error, which makes this rather confusing. You'd be better of calling the variable `error.