diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-10 17:31:23 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 17:07:49 +1000 |
commit | 6fbe660f96419e27f13004b2afede5272f9eb9f7 (patch) | |
tree | 43d36ca7536404ee1df8a72ef5e754c8f5dba51d /pkg/gui/global_handlers.go | |
parent | 74320f00752926b42f0e4d6f84b3816d7a0134a9 (diff) |
full coverage for logging commands
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r-- | pkg/gui/global_handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index 0f281346b..c8c567fd1 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -200,7 +200,7 @@ func (gui *Gui) handleInfoClick() error { return nil } -func (gui *Gui) fetch(canPromptForCredentials bool) (err error) { +func (gui *Gui) fetch(canPromptForCredentials bool, span string) (err error) { gui.Mutexes.FetchMutex.Lock() defer gui.Mutexes.FetchMutex.Unlock() @@ -209,7 +209,7 @@ func (gui *Gui) fetch(canPromptForCredentials bool) (err error) { fetchOpts.PromptUserForCredential = gui.promptUserForCredential } - err = gui.GitCommand.Fetch(fetchOpts) + err = gui.GitCommand.WithSpan(span).Fetch(fetchOpts) if canPromptForCredentials && err != nil && strings.Contains(err.Error(), "exit status 128") { _ = gui.createErrorPanel(gui.Tr.PassUnameWrong) @@ -228,7 +228,7 @@ func (gui *Gui) handleCopySelectedSideContextItemToClipboard() error { return nil } - if err := gui.OSCommand.CopyToClipboard(itemId); err != nil { + if err := gui.OSCommand.WithSpan("Copy to clipboard").CopyToClipboard(itemId); err != nil { return gui.surfaceError(err) } |