mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -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();
|
InitializeComponent();
|
||||||
|
|
||||||
var current = repo.Branches.Find(x => x.IsCurrent);
|
var current = repo.Branches.Find(x => x.IsCurrent);
|
||||||
|
if (current == null) return;
|
||||||
|
|
||||||
txtInto.Text = current.Name;
|
txtInto.Text = current.Name;
|
||||||
|
|
||||||
if (prefered == null && !string.IsNullOrEmpty(current.Upstream)) {
|
if (prefered == null && !string.IsNullOrEmpty(current.Upstream)) {
|
||||||
|
|
Loading…
Reference in a new issue