Clean abandoned untracked files on retry #29

Closed
opened 2026-10-27 13:34:39 +00:00 by sam · 0 comments
Owner

Prepare refresh hard-resets tracked files but retains untracked files; CommitAll later stages and publishes them during the next attempt.

Acceptance criteria

A regression test proves an untracked file left by an interrupted attempt is absent after retry and cannot appear in ChangedFiles or the next commit; deliberate .git control files remain intact.

Close reason

Retry cleaning was implemented in 0522fb7 (reset + cleanUntracked, covered by TestPrepareRecoversFromADirtyWorktreeOnRetry). Remaining defect fixed in 037ee7c: SkipDir on a .git gitdir file aborted the whole walk, so cleaning silently no-opped for linked/adopted worktrees. Regression test TestCleanUntrackedHandlesGitdirFile.


Imported from beads archie-core-1ysw.3 · GitHub #591 · type bug · priority P1 · created 2026-08-22 · closed 2026-08-24

Prepare refresh hard-resets tracked files but retains untracked files; CommitAll later stages and publishes them during the next attempt. ### Acceptance criteria A regression test proves an untracked file left by an interrupted attempt is absent after retry and cannot appear in ChangedFiles or the next commit; deliberate .git control files remain intact. ### Close reason Retry cleaning was implemented in 0522fb7 (reset + cleanUntracked, covered by TestPrepareRecoversFromADirtyWorktreeOnRetry). Remaining defect fixed in 037ee7c: SkipDir on a .git gitdir *file* aborted the whole walk, so cleaning silently no-opped for linked/adopted worktrees. Regression test TestCleanUntrackedHandlesGitdirFile. --- _Imported from beads `archie-core-1ysw.3` · GitHub #591 · type bug · priority P1 · created 2026-08-22 · closed 2026-08-24_
sam added the highbug labels 2026-10-27 13:34:39 +00:00
sam self-assigned this 2026-10-27 13:34:39 +00:00
sam closed this issue 2026-10-27 13:34:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#29