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.
This commit is contained in:
Denis Bilenko 2024-12-09 16:41:39 +01:00
parent e5a85e9e6d
commit 3b19d8fc40
1 changed files with 1 additions and 1 deletions

View File

@ -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 {