I'd like to be cautious here since the docs say this pointer can be null and check for `NULL` here before addressing the message.

Maybe just have a default message like `"Unknown error"` if `git_error` is `NULL`.