diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-02 10:34:33 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | f503ff1ecbfda00dfa4e68e38d41aceaf9b4400c (patch) | |
tree | e113663684406ca893ebb9c223d1fddbc65abea9 /pkg/gui/remotes_panel.go | |
parent | 4a1d23dc27f61e936fb3b582f02e2bba473c3b19 (diff) |
start breaking up git struct
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index c0400ec35..384a34beb 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -86,7 +86,7 @@ func (gui *Gui) handleAddRemote() error { title: gui.Tr.LcNewRemoteUrl, handleConfirm: func(remoteUrl string) error { gui.logAction(gui.Tr.Actions.AddRemote) - if err := gui.GitCommand.AddRemote(remoteName, remoteUrl); err != nil { + if err := gui.GitCommand.Remote.AddRemote(remoteName, remoteUrl); err != nil { return err } return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{REMOTES}}) @@ -108,7 +108,7 @@ func (gui *Gui) handleRemoveRemote() error { prompt: gui.Tr.LcRemoveRemotePrompt + " '" + remote.Name + "'?", handleConfirm: func() error { gui.logAction(gui.Tr.Actions.RemoveRemote) - if err := gui.GitCommand.RemoveRemote(remote.Name); err != nil { + if err := gui.GitCommand.Remote.RemoveRemote(remote.Name); err != nil { return gui.surfaceError(err) } @@ -136,7 +136,7 @@ func (gui *Gui) handleEditRemote() error { handleConfirm: func(updatedRemoteName string) error { if updatedRemoteName != remote.Name { gui.logAction(gui.Tr.Actions.UpdateRemote) - if err := gui.GitCommand.RenameRemote(remote.Name, updatedRemoteName); err != nil { + if err := gui.GitCommand.Remote.RenameRemote(remote.Name, updatedRemoteName); err != nil { return gui.surfaceError(err) } } @@ -159,7 +159,7 @@ func (gui *Gui) handleEditRemote() error { initialContent: url, handleConfirm: func(updatedRemoteUrl string) error { gui.logAction(gui.Tr.Actions.UpdateRemote) - if err := gui.GitCommand.UpdateRemoteUrl(updatedRemoteName, updatedRemoteUrl); err != nil { + if err := gui.GitCommand.Remote.UpdateRemoteUrl(updatedRemoteName, updatedRemoteUrl); err != nil { return gui.surfaceError(err) } return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{BRANCHES, REMOTES}}) @@ -179,7 +179,7 @@ func (gui *Gui) handleFetchRemote() error { gui.Mutexes.FetchMutex.Lock() defer gui.Mutexes.FetchMutex.Unlock() - err := gui.GitCommand.FetchRemote(remote.Name, gui.promptUserForCredential) + err := gui.GitCommand.Sync.FetchRemote(remote.Name) gui.handleCredentialsPopup(err) return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{BRANCHES, REMOTES}}) |