From 052a8aa84ff72ad0cbe707a7f33b44cf5f711e2f Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Tue, 24 Dec 2024 15:34:57 +0100 Subject: [PATCH] WIP. Add comment Signed-off-by: cmoulliard --- pkg/cmd/get/packages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/get/packages.go b/pkg/cmd/get/packages.go index d270dcf2..dd690151 100644 --- a/pkg/cmd/get/packages.go +++ b/pkg/cmd/get/packages.go @@ -87,6 +87,7 @@ func printPackages(ctx context.Context, outWriter io.Writer, kubeClient client.C if cp.Status.GitRepositoryRefs != nil { newPackage.GitRepository = cp.Spec.InternalGitServeURL + "/" + v1alpha1.GiteaAdminUserName + "/" + idpbuilderNamespace + "-" + cp.Status.GitRepositoryRefs[0].Name } else { + // Default branch reference ref := "main" if cp.Spec.RemoteRepository.Ref != "" { ref = cp.Spec.RemoteRepository.Ref