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
When running
shortcake submitaftershortcake adopton an untracked local branch, the newly created remote branch is not trackedExpected behavior:
Current behavior:
Example: