Skip to content

Fix: Coverage badge checkout ambiguity#21

Merged
stephanprobst merged 1 commit intomainfrom
fix/coverage-badge-checkout
Jan 8, 2026
Merged

Fix: Coverage badge checkout ambiguity#21
stephanprobst merged 1 commit intomainfrom
fix/coverage-badge-checkout

Conversation

@stephanprobst
Copy link
Owner

Problem

The CI build failed with:

fatal: 'coverage' could be both a local file and a tracking branch.
Please use -- (and optionally --no-guess) to disambiguate

This happens because the ./coverage/ directory exists from the coverage report generation, and git checkout coverage is ambiguous.

Solution

  • Use git fetch origin coverage:coverage to create local branch directly
  • Use git switch instead of git checkout (branch-only, no file ambiguity)
  • Use git switch --orphan for cleaner orphan branch creation

@stephanprobst stephanprobst merged commit 5b71957 into main Jan 8, 2026
1 check passed
@stephanprobst stephanprobst deleted the fix/coverage-badge-checkout branch January 8, 2026 18:41
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.

1 participant