File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ private void PostRemoteSelected()
210
210
}
211
211
212
212
if ( ! autoSelectedBranch )
213
- SelectedBranch = branches . Count > 0 ? branches [ 0 ] : null ;
213
+ SelectedBranch = null ;
214
214
}
215
215
216
216
private readonly Repository _repo = null ;
Original file line number Diff line number Diff line change @@ -490,10 +490,11 @@ public void Pull(bool autoStart)
490
490
return ;
491
491
}
492
492
493
- if ( autoStart )
494
- PopupHost . ShowAndStartPopup ( new Pull ( this , null ) ) ;
493
+ var pull = new Pull ( this , null ) ;
494
+ if ( autoStart && pull . SelectedBranch != null )
495
+ PopupHost . ShowAndStartPopup ( pull ) ;
495
496
else
496
- PopupHost . ShowPopup ( new Pull ( this , null ) ) ;
497
+ PopupHost . ShowPopup ( pull ) ;
497
498
}
498
499
499
500
public void Push ( bool autoStart )
You can’t perform that action at this time.
0 commit comments