From 9fa01e0246e432c0019a15b46382fd439c03bf8a Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Wed, 17 Apr 2024 19:40:34 -0700 Subject: [PATCH] lib `git.rs`: minor simplification, fixup to 62b14e1f As suggested by @yuja in https://github.com/martinvonz/jj/pull/3516#discussion_r1568466814 --- lib/src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/git.rs b/lib/src/git.rs index d58f066052..9254ec10f0 100644 --- a/lib/src/git.rs +++ b/lib/src/git.rs @@ -1283,7 +1283,7 @@ pub fn push_updates( refspecs.push(format!( "{}{}:{}", (if update.force { "+" } else { "" }), - git2::Oid::from_bytes(new_target.as_bytes()).unwrap(), + new_target.hex(), update.qualified_name )); } else {