From 3b19d8fc40f792fbe4bf230e6d721740d9a6311f Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 9 Dec 2024 16:41:39 +0100 Subject: [PATCH] restore original Inferred logic. On CI info.CurrentBranch is "" but according to original logic it is still Inferred because it only checks if Config value is empty string. --- bundle/config/mutator/load_git_details.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/mutator/load_git_details.go b/bundle/config/mutator/load_git_details.go index 02332bf5b..e03a629ed 100644 --- a/bundle/config/mutator/load_git_details.go +++ b/bundle/config/mutator/load_git_details.go @@ -39,7 +39,7 @@ func (m *loadGitDetails) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn config := &b.Config.Bundle.Git config.ActualBranch = info.CurrentBranch - if config.Branch == "" && info.CurrentBranch != "" { + if config.Branch == "" { fmt.Printf("setting inferred config=%v info=%v\n", *config, info) config.Inferred = true } else {