-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
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
Fix return type of git_blob_is_binary() #20272
Conversation
This triggered a failure in the libgit2 blobs test on i686 when building RPM nightlies. I don't understand why this error does not happen on CI.
What version of libgit2 was that building against? I don't know whether this API has changed at all, but what was the failure you were seeing? |
I've checked the libgit2 code, and that function hasn't been touched for three years. But indeed I was using 0.24.6, so that might have revealed the bug for some obscure reason while it was hidden with 0.25. |
Error was:
|
Looks like you found 2 bugs then, and you're only fixing the easy one! |
Indeed. I'd appreciate if somebody familiar with libgit2 could fix the second bug, as I don't really now what are the different types of FWIW, the failure was pretty systematic on the Copr. |
The |
So I don't have to do anything? Thanks for finding and fixing this! |
Would be good to dig into why only you were hitting this. |
Hard to tell, but I'm the only one to use 0.24 and it doesn't sound impossible that the 32 additional bytes happened to be all zeros on 0.25, which most people use. Bugs involving bools are less likely to be noticed than those involving types in which all 64-bits are actually significant. |
This triggered a failure in the libgit2 blobs test on i686 when building
RPM nightlies. I don't understand why this error does not happen on CI.
This code was introduced in 78133de.
Cc: @kshyatt