@@ -847,8 +847,13 @@ private void FillCurrentBranchMenu(ContextMenu menu, Models.Branch current)
847
847
fastForward . IsEnabled = current . TrackStatus . Ahead . Count == 0 ;
848
848
fastForward . Click += ( _ , e ) =>
849
849
{
850
+ var b = _repo . Branches . Find ( x => x . FriendlyName == upstream ) ;
851
+ if ( b == null )
852
+ return ;
853
+
850
854
if ( PopupHost . CanCreatePopup ( ) )
851
- PopupHost . ShowAndStartPopup ( new Merge ( _repo , upstream , current . Name ) ) ;
855
+ PopupHost . ShowAndStartPopup ( new Merge ( _repo , b , current . Name ) ) ;
856
+
852
857
e . Handled = true ;
853
858
} ;
854
859
submenu . Items . Add ( fastForward ) ;
@@ -943,7 +948,7 @@ private void FillOtherLocalBranchMenu(ContextMenu menu, Models.Branch branch, Mo
943
948
merge . Click += ( _ , e ) =>
944
949
{
945
950
if ( PopupHost . CanCreatePopup ( ) )
946
- PopupHost . ShowPopup ( new Merge ( _repo , branch . Name , current . Name ) ) ;
951
+ PopupHost . ShowPopup ( new Merge ( _repo , branch , current . Name ) ) ;
947
952
e . Handled = true ;
948
953
} ;
949
954
submenu . Items . Add ( merge ) ;
@@ -1027,7 +1032,7 @@ private void FillRemoteBranchMenu(ContextMenu menu, Models.Branch branch, Models
1027
1032
merge . Click += ( _ , e ) =>
1028
1033
{
1029
1034
if ( PopupHost . CanCreatePopup ( ) )
1030
- PopupHost . ShowPopup ( new Merge ( _repo , name , current . Name ) ) ;
1035
+ PopupHost . ShowPopup ( new Merge ( _repo , branch , current . Name ) ) ;
1031
1036
e . Handled = true ;
1032
1037
} ;
1033
1038
@@ -1086,7 +1091,7 @@ private void FillTagMenu(ContextMenu menu, Models.Tag tag, Models.Branch current
1086
1091
merge . Click += ( _ , e ) =>
1087
1092
{
1088
1093
if ( PopupHost . CanCreatePopup ( ) )
1089
- PopupHost . ShowPopup ( new Merge ( _repo , tag . Name , current . Name ) ) ;
1094
+ PopupHost . ShowPopup ( new Merge ( _repo , tag , current . Name ) ) ;
1090
1095
e . Handled = true ;
1091
1096
} ;
1092
1097
submenu . Items . Add ( merge ) ;
0 commit comments