Skip to content

Commit 23a66b9

Browse files
committed
fix: make fetches work again by using safe-performance mode of git-repository.
This fixes the 'zlib stream broken' issue when fetching crates.io changes which was caused by `git-repository` configuring for max-performance by default, which affects a crate used by `git2` as well. For some reason, changing to `zlib-ng` as backend wasn't taken kindly by `libgit2` causing it to fail after a short while of receiving a pack from the remote. The fix avoids making such modifications to the zlib crate, allowing both crates, `git-repository` and `git2` to co-exist in the same dependency tree.
1 parent e93f1c6 commit 23a66b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include = ["src/**/*", "LICENSE.md", "README.md", "CHANGELOG.md"]
1515
test = false
1616

1717
[dependencies]
18-
git-repository = "0.23.0"
18+
git-repository = { version = "0.23.1", default-features = false, features = ["max-performance-safe"] }
1919
similar = { version = "2.2.0", features = ["bytes"] }
2020
serde = { version = "1", features = ["std", "derive"] }
2121
serde_json = "1"

0 commit comments

Comments
 (0)