Open FintanH opened 9 months ago
and possibly libgit2
then its probably better to post the repro there
and possibly libgit2
then its probably better to post the repro there
Thanks for the response, you're right. My C is rusty (pun intended), so it was quicker for me to write a reproducible in Rust first -- and since this library directly relies on the behaviour of libgit2
I thought it would be in this project's interest to know about the potential bug too :)
people post the git2-rs based rust repros there too, don't be shy :)
The main.rs
in the repo only prints "Hello, world!". Is it perhaps missing the reproduction code?
Ah sorry! I did forget to push the changes, but they're there now, thanks :bow:
Hey :wave:
I have a peculiar case that I've created a reproducible for. If you clone this repository https://github.com/FintanH/git2-binary-check and do
cargo run
, you'll get the following output:However, if you were to run
git diff 373b3404371e359404392aff715d504293112c8b abdedcec89e3c48ac520e4a96c7ea39364316b9e
, you'll get:It seems like
git2
, and possiblylibgit2
, are not detecting binary files in the same manner as thegit
CLI is doing.I checked on
git2-0.17.0
andgit2-018.1
and mygit
version isgit version 2.40.1
.Let me know if I can do anything else to help track down this discrepancy.