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

Create new branch doesn't allow publish, and then pushes to existing branch it was created from. #69063

Closed
ritterb82 opened this issue Feb 20, 2019 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues verified Verification succeeded
Milestone

Comments

@ritterb82
Copy link

  • VSCode Version: 1.31.1
  • OS Version: MacOS 10.14.3

Steps to Reproduce:

  1. Create a new branch
  2. Notice there is no button to publish the branch

Does this issue occur when all extensions are disabled?: YES

When i create a branch, it no longer shows the publish icon. If I click the sync icon, it just syncs the content to the original branch on remote.

I've attached the git OUTPUT, and a video demonstration. I have multiple different GIT projects and it does this on ALL Projects. Even brand new projects I've just cloned.

branch-doesnt-show-publish

branch-issue

@vscodebot vscodebot bot added the git GIT issues label Feb 20, 2019
@vscodebot
Copy link

vscodebot bot commented Feb 20, 2019

@ritterb82 ritterb82 changed the title Create new branch doesn't allow publish and save to existing branch it was created from. Create new branch doesn't allow publish, and then pushes to existing branch it was created from. Feb 20, 2019
@mjswensen
Copy link

mjswensen commented Feb 20, 2019

I just ran into this as well. Here is an example workflow that demonstrates the problem:

  1. While working on feature-branch-a, a small bit of work needs to go on its own branch, which should be freshly created off of remote origin's master.
  2. In VS Code, Git: Create branch..., enter branch name, choose origin/master

Expected behavior: VS Code creates a new branch, based on origin/master, with no upstream branch set.

Actual behavior: VS Code creates a new branch with origin/master set as the upstream.

  1. Commit
  2. Push... 💥💥💥 to master instead of the new branch 💥💥💥

(The expected behavior would avoid the workaround of having to check out and pull master before creating the branch.)

@joaomoreno joaomoreno added this to the February 2019 milestone Feb 21, 2019
@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Feb 21, 2019
sandy081 pushed a commit to vldmrkl/vscode that referenced this issue Feb 22, 2019
@roblourens roblourens added the verified Verification succeeded label Feb 27, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants