mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<Histories>: fix crash when open context menu of commit without branches parsed
This commit is contained in:
parent
58cca5d018
commit
e3a5b0b62a
1 changed files with 2 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue