mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
Round-five bot findings, one real root cause: splitRemoteRef treated the first slash in any ref as a remote separator. A local upstream named release/2.0 was truncated to "2.0", and feature/foo tracking from branch foo collapsed to the current branch's own name and was self-skipped, discarding a valid base both times. The split now happens only when the prefix names a configured remote; otherwise the whole ref is one local branch name. The per-remote HEAD symref loop strips its own queried prefix directly (that remote may be fabricated in tests or partial clones without appearing in git remote). The reported pruned-upstream shape already resolves via the multi-remote rev lists from the previous round; its test now guards that. Prepared with AI assistance (Claude Code), directed by @pbakaus. Co-Authored-By: Claude Code <noreply@anthropic.com>