Skip to content

fix(digest): rebaser must fetch feature branches with a full refspec - #8

Merged
dnplkndll merged 1 commit into
mainfrom
fix/rebaser-fetch-refspec
Jun 15, 2026
Merged

fix(digest): rebaser must fetch feature branches with a full refspec#8
dnplkndll merged 1 commit into
mainfrom
fix/rebaser-fetch-refspec

Conversation

@dnplkndll

Copy link
Copy Markdown
Contributor

First live run collapsed ddmrp's rebase pass into one error row: the --single-branch clone + bare git fetch origin <branch> left origin/<branch> undefined, so git checkout --detach origin/<branch> failed. Fetch with an explicit refspec (refs/heads/<b>:refs/remotes/origin/<b>) and force the per-iteration checkout. Adds a regression test pinning the refspec form.

A --single-branch clone + bare `git fetch origin <branch>` updates
FETCH_HEAD but not refs/remotes/origin/<branch>, so the subsequent
`git checkout --detach origin/<branch>` failed and collapsed the whole
ddmrp rebase pass into one error row. Fetch with
refs/heads/<b>:refs/remotes/origin/<b>; force the per-iteration checkout.
@dnplkndll
dnplkndll merged commit 565abeb into main Jun 15, 2026
1 check passed
@dnplkndll
dnplkndll deleted the fix/rebaser-fetch-refspec branch June 15, 2026 14:12
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