From ca2df272594a7b055c740ccda0b9c31b3b7e43cc Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 25 Feb 2026 12:27:56 +0000 Subject: fix: update hardcoded libgit2 version strings in tests to 1.9.2 The Nix environment provides libgit2 1.9.2 via nixpkgs, which libgit2-sys picks up at build time instead of using its bundled version. This caused test assertions that hardcode the libgit2 version string (appended by libgit2 to patch output) to fail after commit 319bb7f added new Cargo dependencies, though the exact mechanism by which those dependencies triggered the switch from the bundled 1.9.1 to the system 1.9.2 remains unclear. Also bump git2 from 0.20.2 to 0.20.4 in both Cargo.toml files so the bundled libgit2-sys version (0.18.3+1.9.2) properly aligns with the 1.9.2 version in use. --- src/lib/git/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/git') diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs index dc84ee3..23fa5f0 100644 --- a/src/lib/git/mod.rs +++ b/src/lib/git/mod.rs @@ -1477,7 +1477,7 @@ mod tests { +some content1\n\\ \ No newline at end of file\n\ --\n\ - libgit2 1.9.1\n\ + libgit2 1.9.2\n\ \n\ ", git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &None)?, @@ -1513,7 +1513,7 @@ mod tests { +some content1\n\\ \ No newline at end of file\n\ --\n\ - libgit2 1.9.1\n\ + libgit2 1.9.2\n\ \n\ ", git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &Some((3, 5)))?, -- cgit v1.2.3