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 {