If the `error` is `GIT_ENOTFOUND`, maybe call `giterr_clear()` so we don't leave a misleading error set?