diff --git a/crates/agent_ui/src/thread_worktree_archive.rs b/crates/agent_ui/src/thread_worktree_archive.rs index 97a6053f4ce352e692e5316a84218e602ff3dea5..2d577e62b92d30b0e24b27b7c5525dd5cdbc6fc7 100644 --- a/crates/agent_ui/src/thread_worktree_archive.rs +++ b/crates/agent_ui/src/thread_worktree_archive.rs @@ -1041,7 +1041,11 @@ pub async fn restore_worktree_via_git( let soft_reset_ok = if mixed_reset_ok { let rx = wt_repo.update(cx, |repo, cx| { - repo.reset(row.original_commit_hash.clone(), ResetMode::Soft, cx) + repo.reset( + row.original_commit_hash.clone(), + ResetMode::Soft, + cx, + ) }); match rx.await { Ok(Ok(())) => true, @@ -1067,7 +1071,11 @@ pub async fn restore_worktree_via_git( row.original_commit_hash ); let rx = wt_repo.update(cx, |repo, cx| { - repo.reset(row.original_commit_hash.clone(), ResetMode::Mixed, cx) + repo.reset( + row.original_commit_hash.clone(), + ResetMode::Mixed, + cx, + ) }); match rx.await { Ok(Ok(())) => {} @@ -1126,7 +1134,11 @@ pub async fn restore_worktree_via_git( row.original_commit_hash ); let rx = wt_repo.update(cx, |repo, cx| { - repo.reset(row.original_commit_hash.clone(), ResetMode::Mixed, cx) + repo.reset( + row.original_commit_hash.clone(), + ResetMode::Mixed, + cx, + ) }); let _ = rx.await; // Delete the old branch and create fresh