Skip to content

Commit

Permalink
Update bundle/config/mutator/load_git_details.go
Browse files Browse the repository at this point in the history
Co-authored-by: Pieter Noordhuis <[email protected]>
  • Loading branch information
denik and pietern authored Dec 9, 2024
1 parent d4f3060 commit 0322733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/config/mutator/load_git_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 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())
if err != nil {
Expand Down

0 comments on commit 0322733

Please sign in to comment.