We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should hiredis.c return a git_error_code type and not git_error_t? Libgit2 checks for if (error < 0) which does not catch git_error_t types.
This manifested in a nullptr instead of an error when trying git_blob_lookup_prefix against hiredis backend.
See https://github.com/libgit2/libgit2-backends/blob/master/redis/hiredis.c#L158 and https://github.com/libgit2/libgit2/blob/master/src/object.c#L190.
The text was updated successfully, but these errors were encountered:
You are right.
return code for error should be below than 0. git_error_t is for giterr_set().
Sorry, something went wrong.
No branches or pull requests
Should hiredis.c return a git_error_code type and not git_error_t? Libgit2 checks for if (error < 0) which does not catch git_error_t types.
This manifested in a nullptr instead of an error when trying git_blob_lookup_prefix against hiredis backend.
See https://github.com/libgit2/libgit2-backends/blob/master/redis/hiredis.c#L158 and https://github.com/libgit2/libgit2/blob/master/src/object.c#L190.
The text was updated successfully, but these errors were encountered: