hpi-swa / Squot

Squeak Object Tracker - Version control for arbitrary objects, currently with Git storage
Other
58 stars 29 forks source link

Switching away from an empty branch errors #396

Closed MariusDoe closed 1 year ago

MariusDoe commented 1 year ago

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

j4yk commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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