Skip to content
Snippets Groups Projects
Commit 8545420a authored by Emil "AngryAnt" Johansen's avatar Emil "AngryAnt" Johansen
Browse files

Address the assumption of always-non-zero changeset tree updates no longer being valid.

parent bf8f6430
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,19 @@ namespace GitHub.Unity
public void Update(IList<GitStatusEntry> newEntries)
{
// Handle the empty list scenario
if (!newEntries.Any())
{
entries.Clear();
entryCommitTargets.Clear();
tree = null;
foldedTreeEntries.Clear();
OnCommitTreeChange();
return;
}
// Remove what got nuked
for (int index = 0; index < entries.Count;)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment