mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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;
|
commitList.SelectedItem = commit;
|
||||||
|
|
||||||
var current = repo.Branches.Find(x => x.IsCurrent);
|
var current = repo.Branches.Find(x => x.IsCurrent);
|
||||||
|
if (current == null) return;
|
||||||
|
|
||||||
var merged = commit.IsMerged;
|
var merged = commit.IsMerged;
|
||||||
var menu = new ContextMenu();
|
var menu = new ContextMenu();
|
||||||
var tags = new List<string>();
|
var tags = new List<string>();
|
||||||
|
|
Loading…
Reference in a new issue