summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/remote_branches_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/remote_branches_controller.go')
-rw-r--r--pkg/gui/controllers/remote_branches_controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/remote_branches_controller.go b/pkg/gui/controllers/remote_branches_controller.go
index b46b5dbb1..97dbf56b0 100644
--- a/pkg/gui/controllers/remote_branches_controller.go
+++ b/pkg/gui/controllers/remote_branches_controller.go
@@ -169,7 +169,7 @@ func (self *RemoteBranchesController) setAsUpstream(selectedBranch *models.Remot
HandleConfirm: func() error {
self.c.LogAction(self.c.Tr.Actions.SetBranchUpstream)
if err := self.c.Git().Branch.SetUpstream(selectedBranch.RemoteName, selectedBranch.Name, checkedOutBranch.Name); err != nil {
- return self.c.Error(err)
+ return err
}
return self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.BRANCHES, types.REMOTES}})