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) }),