From fb358a313d7ca2da0a716b624286398ddd8a4742 Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:53:24 -0500 Subject: [PATCH] ask repo server for specific revision Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- controller/hydrator/hydrator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/hydrator/hydrator.go b/controller/hydrator/hydrator.go index 13cb165ee09d3..f60aa68a9940b 100644 --- a/controller/hydrator/hydrator.go +++ b/controller/hydrator/hydrator.go @@ -263,10 +263,10 @@ func (h *Hydrator) hydrate(logCtx *log.Entry, apps []*appv1.Application, revisio Path: app.Spec.SourceHydrator.DrySource.Path, TargetRevision: app.Spec.SourceHydrator.DrySource.TargetRevision, } - targetRevision := app.Spec.SourceHydrator.DrySource.TargetRevision + //targetRevision := app.Spec.SourceHydrator.DrySource.TargetRevision // TODO: enable signature verification - objs, resp, err := h.dependencies.GetRepoObjs(app, drySource, targetRevision, project) + objs, resp, err := h.dependencies.GetRepoObjs(app, drySource, revision, project) if err != nil { return "", fmt.Errorf("failed to get repo objects: %w", err) }