Skip to content

Commit 7cf345c

Browse files
authored
Merge pull request #1197 from ehuss/git2-0.20-br
Bump git2 to 0.20.3
2 parents 1fb5f64 + dd41077 commit 7cf345c

File tree

8 files changed

+34
-8
lines changed

8 files changed

+34
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.20.3 - 2025-12-06
4+
[0.20.2...0.20.3](https://github.com/rust-lang/git2-rs/compare/git2-0.20.2...git2-0.20.3)
5+
6+
### Changed
7+
8+
- Bumped requirement to libgit2-sys 0.18.3, which updates libgit2 from 1.9.0 to 1.9.2.
9+
[#1197](https://github.com/rust-lang/git2-rs/pull/1197)
10+
311
## 0.20.2 - 2025-05-05
412
[0.20.1...0.20.2](https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2)
513

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git2"
3-
version = "0.20.2"
3+
version = "0.20.3"
44
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -20,7 +20,7 @@ url = "2.5.4"
2020
bitflags = "2.1.0"
2121
libc = "0.2"
2222
log = "0.4.8"
23-
libgit2-sys = { path = "libgit2-sys", version = "0.18.1" }
23+
libgit2-sys = { path = "libgit2-sys", version = "0.18.3" }
2424

2525
[target."cfg(all(unix, not(target_os = \"macos\")))".dependencies]
2626
openssl-sys = { version = "0.9.45", optional = true }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ libgit2 bindings for Rust.
66

77
```toml
88
[dependencies]
9-
git2 = "0.20.2"
9+
git2 = "0.20.3"
1010
```
1111

1212
## Rust version requirements

libgit2-sys/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 0.18.3+1.9.2 - 2025-12-06
4+
[0.18.2...0.18.3](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.2+1.9.1...libgit2-sys-0.18.3+1.9.2)
5+
6+
### Changed
7+
- Updated to libgit2 [1.9.2](https://github.com/libgit2/libgit2/releases/tag/v1.9.2)
8+
[#1195](https://github.com/rust-lang/git2-rs/pull/1195)
9+
10+
Note that this release fixes two security issues. However, the Rust bindings do not provide direct support for the affected APIs. In particular:
11+
- The `libgit2-sys` crate does not support building the vendored C library with the `GIT_SSH_EXEC` setting. This will only be an issue if you are binding to a system-provided library built with this setting.
12+
- The `git2` crate does not support custom SSH credentials. However, the `libgit2-sys` crate does export the `git_cred_ssh_custom_new` C-binding. Any projects using the C bindings directly are affected.
13+
14+
## 0.18.2+1.9.1 - 2025-06-21
15+
[0.18.1...0.18.2](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.1+1.9.0...libgit2-sys-0.18.2+1.9.1)
16+
17+
### Changed
18+
- Updated to libgit2 [1.9.1](https://github.com/libgit2/libgit2/releases/tag/v1.9.1)
19+
[#1169](https://github.com/rust-lang/git2-rs/pull/1169)
20+
321
## 0.18.1+1.9.0 - 2025-03-17
422
[0.18.0...0.18.1](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.0+1.9.0...libgit2-sys-0.18.1+1.9.0)
523

libgit2-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libgit2-sys"
3-
version = "0.18.1+1.9.0"
3+
version = "0.18.3+1.9.2"
44
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"]
55
links = "git2"
66
build = "build.rs"

libgit2-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::process::Command;
77
/// Tries to use system libgit2 and emits necessary build script instructions.
88
fn try_system_libgit2() -> Result<pkg_config::Library, pkg_config::Error> {
99
let mut cfg = pkg_config::Config::new();
10-
match cfg.range_version("1.9.0".."1.10.0").probe("libgit2") {
10+
match cfg.range_version("1.9.2".."1.10.0").probe("libgit2") {
1111
Ok(lib) => {
1212
for include in &lib.include_paths {
1313
println!("cargo:root={}", include.display());

libgit2-sys/libgit2

Submodule libgit2 updated 65 files

0 commit comments

Comments
 (0)