mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 03:12:21 +08:00
fix<Pull>: fix crash when there's no local branches
This commit is contained in:
@@ -18,6 +18,8 @@ namespace SourceGit.Views.Popups {
|
||||
InitializeComponent();
|
||||
|
||||
var current = repo.Branches.Find(x => x.IsCurrent);
|
||||
if (current == null) return;
|
||||
|
||||
txtInto.Text = current.Name;
|
||||
|
||||
if (prefered == null && !string.IsNullOrEmpty(current.Upstream)) {
|
||||
|
||||
Reference in New Issue
Block a user