mirror of https://github.com/databricks/cli.git
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:
parent
e5a85e9e6d
commit
3b19d8fc40
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue