Skip to content

Commit 47431f3

Browse files
bryangoarxanas
authored andcommitted
build: bump git2 0.19 -> 0.20 to unlock ^ref spec
This depends on libgit2 1.9.0 which is contained in git2 0.20.
1 parent dff8a8e commit 47431f3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
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
@@ -69,7 +69,7 @@ git-branchless-smartlog = { version = "0.10.0", path = "git-branchless-smartlog"
6969
git-branchless-submit = { version = "0.10.0", path = "git-branchless-submit" }
7070
git-branchless-test = { version = "0.10.0", path = "git-branchless-test" }
7171
git-branchless-undo = { version = "0.10.0", path = "git-branchless-undo" }
72-
git2 = { version = "0.19.0", default-features = false }
72+
git2 = { version = "0.20.0", default-features = false }
7373
glob = "0.3.2"
7474
indexmap = "2.7.0"
7575
indicatif = { version = "0.17.9", features = ["improved_unicode"] }

git-branchless-invoke/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ fn install_tracing(effects: Effects) -> eyre::Result<impl Drop> {
117117

118118
#[instrument]
119119
fn install_libgit2_tracing() {
120-
fn git_trace(level: git2::TraceLevel, msg: &str) {
121-
info!("[{:?}]: {}", level, msg);
120+
fn git_trace(level: git2::TraceLevel, msg: &[u8]) {
121+
info!("[{:?}]: {}", level, String::from_utf8_lossy(msg));
122122
}
123123

124-
if !git2::trace_set(git2::TraceLevel::Trace, git_trace) {
125-
warn!("Failed to install libgit2 tracing");
124+
if let Err(err) = git2::trace_set(git2::TraceLevel::Trace, git_trace) {
125+
warn!("Failed to install libgit2 tracing: {err}");
126126
}
127127
}
128128

0 commit comments

Comments
 (0)