Skip to content

Missing remote branch tracking after running shortcake submit on a local-only adopted branch #26

Description

@buurro

When running shortcake submit after shortcake adopt on an untracked local branch, the newly created remote branch is not tracked

Expected behavior:

  • A remote branch gets created
  • The local branch tracks the remote branch

Current behavior:

  • A remote branch gets created
  • The local branch does not track the new remote branch

Example:

❯❯❯ git checkout -b some-branch
Switched to a new branch 'some-branch'

❯❯❯ sc adopt
Adopted branch 'some-branch' with parent 'main'

❯❯❯ sc submit
Submitting some-branch... created PR #2

Submitted PRs:
  • some-branch: https://github.com/buurro/some-repo/pull/2

❯❯❯ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> some-branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions