mirror of https://github.com/databricks/cli.git
Update bundle/config/mutator/load_git_details.go
Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
This commit is contained in:
parent
d4f30604f9
commit
0322733914
|
@ -45,7 +45,7 @@ func (m *loadGitDetails) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
|
||||||
// In case of branch and commit and absence of --force we raise severity to Error
|
// In case of branch and commit and absence of --force we raise severity to Error
|
||||||
diags = append(diags, checkMatch("Git branch", info.CurrentBranch, &config.Branch, b.Config.Bundle.Force)...)
|
diags = append(diags, checkMatch("Git branch", info.CurrentBranch, &config.Branch, b.Config.Bundle.Force)...)
|
||||||
diags = append(diags, checkMatch("Git commit", info.LatestCommit, &config.Commit, b.Config.Bundle.Force)...)
|
diags = append(diags, checkMatch("Git commit", info.LatestCommit, &config.Commit, b.Config.Bundle.Force)...)
|
||||||
diags = append(diags, checkMatch("Git originURL", info.OriginURL, &config.OriginURL, true)...)
|
diags = append(diags, checkMatch("Git origin URL", info.OriginURL, &config.OriginURL, true)...)
|
||||||
|
|
||||||
relBundlePath, err := filepath.Rel(b.WorktreeRoot.Native(), b.BundleRoot.Native())
|
relBundlePath, err := filepath.Rel(b.WorktreeRoot.Native(), b.BundleRoot.Native())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue