Skip to content

fix(review): stop worktree opens after fetch failure#440

Merged
barrettruth merged 1 commit intomainfrom
fix/434-review-worktree-fetch-errors
Apr 26, 2026
Merged

fix(review): stop worktree opens after fetch failure#440
barrettruth merged 1 commit intomainfrom
fix/434-review-worktree-fetch-errors

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

@barrettruth barrettruth commented Apr 26, 2026

Problem

The review worktree adapter was still starting git worktree add even when the preceding PR fetch failed. That hid the real fetch error and could replace it with a misleading later worktree failure.

Closes #434.

Solution

Check the fetch result first, surface the real fetch failure, and only run git worktree add after a successful fetch. Add focused review specs that cover both the successful worktree path and the fetch-failure guard.

The worktree review adapter was still starting git worktree add even when the preceding PR fetch failed, which hid the real fetch error behind a later worktree failure. Stop after fetch errors and surface the underlying command failure instead.
@barrettruth barrettruth merged commit e6e92f9 into main Apr 26, 2026
3 checks passed
@barrettruth barrettruth deleted the fix/434-review-worktree-fetch-errors branch April 26, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop review worktree creation after PR fetch failure

1 participant