fix<Histories>: fix crash when open context menu of commit without branches parsed

This commit is contained in:
leo 2021-05-25 09:09:49 +08:00
parent 58cca5d018
commit e3a5b0b62a

View file

@ -255,6 +255,8 @@ namespace SourceGit.Views.Widgets {
commitList.SelectedItem = commit;
var current = repo.Branches.Find(x => x.IsCurrent);
if (current == null) return;
var merged = commit.IsMerged;
var menu = new ContextMenu();
var tags = new List<string>();