From 3212efaf89dec0865a1eca7ddb8e0f1f4ce0fcf8 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Wed, 19 Nov 2025 13:44:31 +0000 Subject: [PATCH] Fix --- codex-rs/utils/git/src/ghost_commits.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/utils/git/src/ghost_commits.rs b/codex-rs/utils/git/src/ghost_commits.rs index 1fd4dc3d7d..7fdc16e69c 100644 --- a/codex-rs/utils/git/src/ghost_commits.rs +++ b/codex-rs/utils/git/src/ghost_commits.rs @@ -320,6 +320,7 @@ fn restore_to_commit_inner( OsString::from("restore"), OsString::from("--source"), OsString::from(commit_id), + OsString::from("--staged"), OsString::from("--worktree"), OsString::from("--"), ];