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 {