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

Switching away from an empty branch errors #396

Closed
MariusDoe opened this issue Nov 21, 2022 · 3 comments
Closed

Switching away from an empty branch errors #396

MariusDoe opened this issue Nov 21, 2022 · 3 comments
Assignees

Comments

@MariusDoe
Copy link
Collaborator

When currently on a branch without any commits (such as the initial master branch), trying to switch to another branch produces this error: MessageNotUnderstood: UndefinedObject>>includesObjectAt:. This is due to self loadedHistorian version being nil, as the branch the browser is coming from is empty.

Steps to reproduce

  • Create a new project (this creates an empty master branch).
  • Add a remote and fetch it. This one works for the reproduction.
  • Right click one of the remote branches and select "Create a new branch and switch to it".
  • Name the new branch something other than master.
  • Now, the error MessageNotUnderstood: UndefinedObject>>includesObjectAt: should appear.
@j4yk j4yk self-assigned this Nov 27, 2022
@j4yk
Copy link
Collaborator

j4yk commented Nov 27, 2022

Thank you for the report. To remember to handle branches without commits is always a pain... I will write a test case that tests the two switch variants while on an orphaned branch.

@j4yk j4yk closed this as completed in 9c3d011 Nov 27, 2022
@j4yk
Copy link
Collaborator

j4yk commented Nov 27, 2022

@MariusDoe Please update to the latest version on the develop branch and check whether the issue is resolved. If it is not, please reopen.

@MariusDoe
Copy link
Collaborator Author

@j4yk I just checked and it works, thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants