Auto merge of #10557 - Mrmaxmeier:backport-libgit2-update, r=ehuss

Backport git2 update #10442 as 0.61.1

This is a version bump and backport of the git2 updates in #10442 to the `rust-1.60.0` branch.

Closes #10446
diff --git a/Cargo.toml b/Cargo.toml
index fba5257..3133557 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "cargo"
-version = "0.61.0"
+version = "0.61.1"
 edition = "2021"
 license = "MIT OR Apache-2.0"
 homepage = "https://crates.io"
@@ -29,8 +29,8 @@
 anyhow = "1.0"
 filetime = "0.2.9"
 flate2 = { version = "1.0.3", default-features = false, features = ["zlib"] }
-git2 = "0.13.23"
-git2-curl = "0.14.1"
+git2 = "0.14.2"
+git2-curl = "0.15.0"
 glob = "0.3.0"
 hex = "0.4"
 home = "0.5"
@@ -41,7 +41,7 @@
 lazycell = "1.2.0"
 libc = "0.2"
 log = "0.4.6"
-libgit2-sys = "0.12.24"
+libgit2-sys = "0.13.2"
 memchr = "2.1.3"
 num_cpus = "1.0"
 opener = "0.5"
diff --git a/crates/cargo-test-support/Cargo.toml b/crates/cargo-test-support/Cargo.toml
index 4d7e519..c5e65d1 100644
--- a/crates/cargo-test-support/Cargo.toml
+++ b/crates/cargo-test-support/Cargo.toml
@@ -13,7 +13,7 @@
 cargo-util = { path = "../cargo-util" }
 filetime = "0.2"
 flate2 = { version = "1.0", default-features = false, features = ["zlib"] }
-git2 = "0.13.16"
+git2 = "0.14.2"
 glob = "0.3"
 itertools = "0.10.0"
 lazy_static = "1.0"