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 branch on "working directory" creates revision 11111 instead of last known commit #6597

Closed
nmat opened this issue May 18, 2019 · 1 comment · Fixed by #6604

Comments

@nmat
Copy link

commented May 18, 2019

Current behaviour

I wanted to create a branch on the current branch selected "master" for example to do a merge request but didn't look where I stood in the current tree of commits so just hit Ctrl+B

Standing on "Working Directory" showed this dialog:

image

There is no way to add this and then create commits to it. To fix this I had to go out from that dialog and then select the last known commit in the tree and create a branch.

image

Then it works.

Expected behaviour

Either add branch from last known commit in the tree or make selecting the last known commit in the dialog.

Or just skip and do not allow creating a branch on "Working directory"

Steps to reproduce

  1. Go to any repo
  2. Select the "Working directory" commit in the tree
  3. Ctrl+B to create a new branch

Its happened on all the repos I have tested so far including GitExtensionDocs repo

Did this work in previous version of GitExtensions

Not sure

Environment

  • Git Extensions 3.1.0.5877
  • Build bb1687f
  • Git 2.21.0.windows.1
  • Microsoft Windows NT 10.0.17763.0
  • .NET Framework 4.7.3416.0
  • DPI 96dpi (no scaling)
@gerhardol

This comment has been minimized.

Copy link
Member

commented May 18, 2019

do not allow creating a branch on "Working directory"

That is what should be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.