Skip to content

Commit 2ef39a7

Browse files
build(deps): bump git2 from 0.18.3 to 0.20.4 (#3130)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.18.3 to 0.20.4. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/git2-rs/blob/git2-0.20.4/CHANGELOG.md">git2's changelog</a>.</em></p> <blockquote> <h2>0.20.4 - 2026-02-02</h2> <p><a href="https://github.com/rust-lang/git2-rs/compare/git2-0.20.3...git2-0.20.4">0.20.3...0.20.4</a></p> <h3>Fixed</h3> <ul> <li>Fix undefined behavior when dereferencing empty <code>Buf</code>. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1213">#1213</a></li> </ul> <h2>0.20.3 - 2025-12-06</h2> <p><a href="https://github.com/rust-lang/git2-rs/compare/git2-0.20.2...git2-0.20.3">0.20.2...0.20.3</a></p> <h3>Changed</h3> <ul> <li>Bumped requirement to libgit2-sys 0.18.3, which updates libgit2 from 1.9.0 to 1.9.2. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1197">#1197</a></li> </ul> <h2>0.20.2 - 2025-05-05</h2> <p><a href="https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2">0.20.1...0.20.2</a></p> <h3>Added</h3> <ul> <li>Added <code>Status::WT_UNREADABLE</code>. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1151">#1151</a></li> </ul> <h3>Fixed</h3> <ul> <li>Added missing codes for <code>GIT_EDIRECTORY</code>, <code>GIT_EMERGECONFLICT</code>, <code>GIT_EUNCHANGED</code>, <code>GIT_ENOTSUPPORTED</code>, and <code>GIT_EREADONLY</code> to <code>Error::raw_code</code>. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1153">#1153</a></li> <li>Fixed missing initialization in <code>Indexer::new</code>. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1160">#1160</a></li> </ul> <h2>0.20.1 - 2025-03-17</h2> <p><a href="https://github.com/rust-lang/git2-rs/compare/git2-0.20.0...git2-0.20.1">0.20.0...0.20.1</a></p> <h3>Added</h3> <ul> <li>Added <code>Repository::branch_upstream_merge()</code> <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1131">#1131</a></li> <li>Added <code>Index::conflict_get()</code> <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1134">#1134</a></li> <li>Added <code>Index::conflict_remove()</code> <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1133">#1133</a></li> <li>Added <code>opts::set_cache_object_limit()</code> <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1118">#1118</a></li> <li>Added <code>Repo::merge_file_from_index()</code> and associated <code>MergeFileOptions</code> and <code>MergeFileResult</code>. <a href="https://redirect.github.com/rust-lang/git2-rs/pull/1062">#1062</a></li> </ul> <h3>Changed</h3> <ul> <li>The <code>url</code> dependency minimum raised to 2.5.4</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/git2-rs/commit/8852d7dabd38d0df6d4524e04a1c2ee520ac7203"><code>8852d7d</code></a> Merge pull request <a href="https://redirect.github.com/rust-lang/git2-rs/issues/1214">#1214</a> from weihanglo/backport-from-raw-parts</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/0b274f76f70f717c3bda4be1f79ba8e1cb11afd4"><code>0b274f7</code></a> Bump to 0.20.4</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/73a5d5d7c49a7eb9d17c2ab6e40dafe3765ebf4d"><code>73a5d5d</code></a> Add test for dereference of an empty Buf</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/ce566831eb188b0fdb27962e154b8da6103071bf"><code>ce56683</code></a> fix: check ptr nullity before calling from_raw_parts</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/7cf345c4f7967b7da3c728db6766362e51540cbe"><code>7cf345c</code></a> Merge pull request <a href="https://redirect.github.com/rust-lang/git2-rs/issues/1197">#1197</a> from ehuss/git2-0.20-br</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/dd41077750fe30bf780c9e7f7ab4717d264e098d"><code>dd41077</code></a> Bump git2 to 0.20.3</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/a6a58e2b0fd409ae33f2f6a68927ce62ebd114f0"><code>a6a58e2</code></a> Merge pull request <a href="https://redirect.github.com/rust-lang/git2-rs/issues/1195">#1195</a> from ehuss/update-libgit2</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/1fb5f64819a9f5b175e0fb09dc369d0a2ccd355a"><code>1fb5f64</code></a> Merge pull request <a href="https://redirect.github.com/rust-lang/git2-rs/issues/1161">#1161</a> from ehuss/bump-version</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/26bfd30ef25e6f7d7eab361f0ab118df3d1f6161"><code>26bfd30</code></a> Update version of git2 to 0.20.2</li> <li><a href="https://github.com/rust-lang/git2-rs/commit/eef4592abf3f688e1058e00b9297f6baf9026f22"><code>eef4592</code></a> Merge pull request <a href="https://redirect.github.com/rust-lang/git2-rs/issues/1160">#1160</a> from ehuss/indexer-init</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/git2-rs/compare/git2-0.18.3...git2-0.20.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=git2&package-manager=cargo&previous-version=0.18.3&new-version=0.20.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/getsentry/sentry-cli/network/alerts). </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 4b39183 commit 2ef39a7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ elementtree = "1.2.3"
3131
flate2 = { version = "1.0.25", default-features = false, features = [
3232
"rust_backend",
3333
] }
34-
git2 = { version = "0.18.1", default-features = false }
34+
git2 = { version = "0.20.4", default-features = false }
3535
glob = "0.3.1"
3636
if_chain = "1.0.2"
3737
ignore = "0.4.20"

0 commit comments

Comments
 (0)