Skip to content

gh stack rebase doubles remote prefix for remote-qualified trunk #176

Description

@windsornguyen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions