Expose PushUrls to custom commands

This commit is contained in:
Stefan Haller 2026-05-03 14:35:41 +02:00
parent 6f1c57b604
commit 127dd9d325
2 changed files with 4 additions and 2 deletions

View file

@ -76,6 +76,7 @@ type RemoteBranch struct {
type Remote struct {
Name string
Urls []string
PushUrls []string
Branches []*RemoteBranch
}

View file

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