From 5b7debf349a4f0e4af22874b9e92d9a913bb3188 Mon Sep 17 00:00:00 2001 From: zy9ard3 <67743789+zy9ard3@users.noreply.github.com> Date: Tue, 26 Aug 2025 09:05:31 +0530 Subject: [PATCH] Update pkg/external/customtemplates/github.go Co-authored-by: Dwi Siswanto <25837540+dwisiswant0@users.noreply.github.com> --- pkg/external/customtemplates/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/external/customtemplates/github.go b/pkg/external/customtemplates/github.go index 338a4cb80..f6fc474ef 100644 --- a/pkg/external/customtemplates/github.go +++ b/pkg/external/customtemplates/github.go @@ -53,7 +53,7 @@ func (customTemplate *customTemplateGitHubRepo) Update(ctx context.Context) { } err := customTemplate.pullChanges(clonePath, customTemplate.githubToken) if err != nil { - if strings.Contains(err.Error(), "already up-to-date") { + if errors.Is(err, git.NoErrAlreadyUpToDate) { gologger.Info().Msgf("%s", err) } else { gologger.Error().Msgf("%s", err)