@@ -13,7 +13,6 @@ use gitbutler_repo::{
1313} ;
1414use gitbutler_repo_actions:: RepoActionsExt as _;
1515use gitbutler_stack:: { Stack , StackId , Target , VirtualBranchesHandle } ;
16- use gix:: prelude:: Write ;
1716use serde:: { Deserialize , Serialize } ;
1817
1918#[ derive( Serialize , PartialEq , Debug ) ]
@@ -229,15 +228,13 @@ pub fn upstream_integration_statuses(
229228 {
230229 if tree_merge. has_unresolved_conflicts ( conflict_kind) {
231230 bail ! (
232- "Merge result unexpectedly has conflicts between base, ours, theirs: {old_target_tree_id}, {new_target_tree_id}, {tree_id}"
231+ "Merge result unexpectedly has conflicts between base, \
232+ ours, theirs: {old_target_tree_id}, {new_target_tree_id}, {tree_id}"
233233 )
234234 }
235235 // We're safe to write the tree as we've ensured it's
236236 // unconflicted in the previous test.
237- let tree_merge_index_tree_id = tree_merge
238- . tree
239- . write ( |tree| gix_repo. write ( tree) )
240- . map_err ( |err| anyhow ! ( "{err}" ) ) ?;
237+ let tree_merge_index_tree_id = tree_merge. tree . write ( ) ?. detach ( ) ;
241238
242239 // Identical trees will have the same Oid so we can compare the two
243240 if tree_merge_index_tree_id == new_target_tree_id {
0 commit comments