diff --git a/crates/agent_ui/src/thread_worktree_archive.rs b/crates/agent_ui/src/thread_worktree_archive.rs index 2d577e62b92d30b0e24b27b7c5525dd5cdbc6fc7..795dd0ba700e1df275ac487bc21fcc08597fb356 100644 --- a/crates/agent_ui/src/thread_worktree_archive.rs +++ b/crates/agent_ui/src/thread_worktree_archive.rs @@ -971,10 +971,10 @@ pub async fn restore_worktree_via_git( let commit_exists = main_repo .update(cx, |repo, _cx| { - repo.resolve_commit(row.original_commit_hash.clone()) + repo.commit_exists(row.original_commit_hash.clone()) }) .await - .map_err(|_| anyhow!("resolve_commit was canceled"))? + .map_err(|_| anyhow!("commit_exists check was canceled"))? .context("failed to check if original commit exists")?; if !commit_exists {