Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sno switch [branch] doesn't switch to upstream branch if it exists #259

Closed
hamishcampbell opened this issue Sep 15, 2020 · 1 comment · Fixed by #292
Closed

sno switch [branch] doesn't switch to upstream branch if it exists #259

hamishcampbell opened this issue Sep 15, 2020 · 1 comment · Fixed by #292
Assignees

Comments

@hamishcampbell
Copy link
Member

Given a remote origin with a branch other-branch, the following command does not currently work as expected:

$ sno switch other-branch
Error: Branch 'other-branch' not found.

To check out a remote branch and configure tracking, it seems you currently have to do something like this:

$ sno switch origin/other-branch
$ sno switch -c other-branch
$ sno push --set-upstream origin other-branch

I expected sno switch other-branch do to this for me. That is:

  1. Look for a remote branch with the name other-branch
  2. check that branch out
  3. configure the upstream source
@rcoup
Copy link
Member

rcoup commented Oct 28, 2020

👍 needs to match git's behaviour

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 a pull request may close this issue.

3 participants