Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cargo: how does it find git binary to use

In light of the new security vulnerability in git (quickly patched), I'm wondering how to verify the particular git binary cargo uses for cloning repositories to verify that it has the patch?

https://bugs.chromium.org/p/project-zero/issues/detail?id=2021

like image 382
chub500 Avatar asked Apr 09 '26 16:04

chub500


1 Answers

Cargo does not call any git binary. It internally uses the git2 crate, which binds libgit2.

The libgit2 that git2 binds to is included as a Git submodule and it currently points to version 1.0.0.

like image 51
mcarton Avatar answered Apr 11 '26 08:04

mcarton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!