File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ func (self *BranchesController) localDelete(branch *models.Branch) error {
581581}
582582
583583func (self * BranchesController ) remoteDelete (branch * models.Branch ) error {
584- return self .c .Helpers ().BranchesHelper .ConfirmDeleteRemote (branch .UpstreamRemote , branch .Name )
584+ return self .c .Helpers ().BranchesHelper .ConfirmDeleteRemote (branch .UpstreamRemote , branch .UpstreamBranch )
585585}
586586
587587func (self * BranchesController ) forceDelete (branch * models.Branch ) error {
Original file line number Diff line number Diff line change @@ -37,20 +37,13 @@ var DeleteRemoteBranchWithDifferentName = NewIntegrationTest(NewIntegrationTestA
3737 Tap (func () {
3838 t .ExpectPopup ().
3939 Confirmation ().
40- /* EXPECTED:
4140 Title (Equals ("Delete branch 'mybranch-remote'?" )).
4241 Content (Equals ("Are you sure you want to delete the remote branch 'mybranch-remote' from 'origin'?" )).
43- ACTUAL: */
44- Title (Equals ("Delete branch 'mybranch-local'?" )).
45- Content (Equals ("Are you sure you want to delete the remote branch 'mybranch-local' from 'origin'?" )).
4642 Confirm ()
4743 }).
4844 Lines (
4945 Contains ("master" ),
50- /* EXPECTED:
5146 Contains ("mybranch-local (upstream gone)" ).IsSelected (),
52- ACTUAL: */
53- Contains ("mybranch-local ✓" ).IsSelected (),
5447 )
5548 },
5649})
You can’t perform that action at this time.
0 commit comments