gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

gh stack rebase doubles remote prefix for remote-qualified trunk

Open windsornguyen opened this issue 4 months ago • 0 comments

Reproduction

With origin/main present:

$ gh stack init --base origin/main layer-a layer-b
✓ Adopted 2 branches: origin/main <- layer-a <- layer-b

$ gh stack rebase --remote origin
✓ Fetched origin
✗ could not create local trunk branch origin/main from origin/origin/main: failed to run git: fatal: not a valid object name: "origin/origin/main"

Expected

init and rebase agree on the accepted trunk name.

Environment

gh stack 0.0.7

windsornguyen avatar Jul 13 '26 21:07 windsornguyen