Skip to content

Commit

Permalink
git2 upgrade (#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst authored Jan 10, 2025
1 parent 89db838 commit 01ad061
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion asyncgit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crossbeam-channel = "0.5"
dirs = "5.0"
easy-cast = "0.5"
fuzzy-matcher = "0.3"
git2 = "0.19"
git2 = "0.20"
git2-hooks = { path = "../git2-hooks", version = ">=0.4" }
gix = { version = "0.69.1", default-features = false, features = [
"max-performance",
Expand Down
6 changes: 3 additions & 3 deletions asyncgit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ pub fn hash<T: Hash + ?Sized>(v: &T) -> u64 {
///
#[cfg(feature = "trace-libgit")]
pub fn register_tracing_logging() -> bool {
fn git_trace(level: git2::TraceLevel, msg: &str) {
log::info!("[{:?}]: {}", level, msg);
fn git_trace(level: git2::TraceLevel, msg: &[u8]) {
log::info!("[{:?}]: {}", level, String::from_utf8_lossy(msg));
}
git2::trace_set(git2::TraceLevel::Trace, git_trace)
git2::trace_set(git2::TraceLevel::Trace, git_trace).is_ok()
}

///
Expand Down

0 comments on commit 01ad061

Please sign in to comment.