From 2219c1dcab24237a8392ba2c19500d0c26b415d3 Mon Sep 17 00:00:00 2001 From: "annie.black" Date: Wed, 18 Dec 2024 11:00:47 -0500 Subject: [PATCH] eh also include git tags --- repotracker/repotracker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repotracker/repotracker.go b/repotracker/repotracker.go index 58399ef3a8..b053c64884 100644 --- a/repotracker/repotracker.go +++ b/repotracker/repotracker.go @@ -634,9 +634,9 @@ func CreateVersionFromConfig(ctx context.Context, projectInfo *model.ProjectInfo if err != nil { return v, errors.Wrap(err, "error finding project alias") } - if metadata.Alias != "" && len(aliases) == 0 { - aliasErr = fmt.Sprintf("requested alias '%s' is undefined", metadata.Alias) - } + } + if metadata.Alias != "" && len(aliases) == 0 { + aliasErr = fmt.Sprintf("requested alias '%s' is undefined", metadata.Alias) } verrs := validator.CheckProject(ctx, projectInfo.Project, projectInfo.Config, projectInfo.Ref, true, projectInfo.Ref.Id, nil)