From 6f1c57b604ee27e96fb9c6bf7ec0913d2d5d0a71 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 3 May 2026 14:35:37 +0200 Subject: [PATCH] Show PushUrls for selected remote if there are any --- pkg/gui/controllers/remotes_controller.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/gui/controllers/remotes_controller.go b/pkg/gui/controllers/remotes_controller.go index cbba7b656..c07626649 100644 --- a/pkg/gui/controllers/remotes_controller.go +++ b/pkg/gui/controllers/remotes_controller.go @@ -106,7 +106,11 @@ func (self *RemotesController) GetOnRenderToMain() func() { if remote == nil { task = types.NewRenderStringTask("No remotes") } else { - task = types.NewRenderStringTask(fmt.Sprintf("%s\nUrls:\n%s", style.FgGreen.Sprint(remote.Name), strings.Join(remote.Urls, "\n"))) + content := fmt.Sprintf("%s\nUrls:\n%s", style.FgGreen.Sprint(remote.Name), strings.Join(remote.Urls, "\n")) + if len(remote.PushUrls) > 0 { + content += fmt.Sprintf("\nPush Urls:\n%s", strings.Join(remote.PushUrls, "\n")) + } + task = types.NewRenderStringTask(content) } self.c.RenderToMainViews(types.RefreshMainOpts{