Skip to content

fix: fall back to ls-remote when origin/HEAD is unset in skip check#17

Merged
milldr merged 1 commit intomainfrom
fix/status-skip-origin-head
Mar 3, 2026
Merged

fix: fall back to ls-remote when origin/HEAD is unset in skip check#17
milldr merged 1 commit intomainfrom
fix/status-skip-origin-head

Conversation

@milldr
Copy link
Owner

@milldr milldr commented Mar 3, 2026

What

Add git ls-remote --symref origin HEAD as a fallback in the default status spec's skip check when git symbolic-ref refs/remotes/origin/HEAD fails.

Why

In flow worktrees, origin/HEAD is not always set as a symbolic ref (depends on how the bare clone was created). When it's missing, the skip check silently fails, causing repos on their default branch (e.g. main) to not be skipped. This drags the workspace status down to open even when all feature-branch PRs are merged.

Ref

Observed on the atmos-pro-idor-vulernability workspace which showed open despite all PRs being merged — the atmos-pro-qa-2 repo on main wasn't being skipped.

@milldr milldr added the patch Patch version bump label Mar 3, 2026
@milldr milldr merged commit ab41d7e into main Mar 3, 2026
3 checks passed
@milldr milldr deleted the fix/status-skip-origin-head branch March 3, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Patch version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant