From 127dd9d325b09c3272b1072439d5066345dfe784 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 3 May 2026 14:35:41 +0200 Subject: [PATCH] Expose PushUrls to custom commands --- pkg/gui/services/custom_commands/models.go | 1 + pkg/gui/services/custom_commands/session_state_loader.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/gui/services/custom_commands/models.go b/pkg/gui/services/custom_commands/models.go index e79963458..23a2b9ac7 100644 --- a/pkg/gui/services/custom_commands/models.go +++ b/pkg/gui/services/custom_commands/models.go @@ -76,6 +76,7 @@ type RemoteBranch struct { type Remote struct { Name string Urls []string + PushUrls []string Branches []*RemoteBranch } diff --git a/pkg/gui/services/custom_commands/session_state_loader.go b/pkg/gui/services/custom_commands/session_state_loader.go index b2a2e39c9..a524d13a1 100644 --- a/pkg/gui/services/custom_commands/session_state_loader.go +++ b/pkg/gui/services/custom_commands/session_state_loader.go @@ -116,8 +116,9 @@ func remoteShimFromModelRemote(remote *models.Remote) *Remote { } return &Remote{ - Name: remote.Name, - Urls: remote.Urls, + Name: remote.Name, + Urls: remote.Urls, + PushUrls: remote.PushUrls, Branches: lo.Map(remote.Branches, func(branch *models.RemoteBranch, _ int) *RemoteBranch { return remoteBranchShimFromModelRemoteBranch(branch) }),