mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix<Pull>: fix crash when there's no local branches
This commit is contained in:
parent
a965e4e2b4
commit
8fe7871b59
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue