Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
set firstParent to false in CommitsBetween
Browse files Browse the repository at this point in the history
the CommitsBetween method added a firstParent boolean here, in:

fluxcd/flux@42d6f18

fluxcd/flux#2803

If we are calling CommitsBetween here, expecting the old behavior, then
it should be set to "false"

Signed-off-by: Kingdon Barrett <[email protected]>
  • Loading branch information
Kingdon Barrett committed Aug 30, 2022
1 parent 70d441b commit 4d0666e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chartsync/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (c *GitChartSync) sync(hr *v1.HelmRelease, mirrorName string, repo *git.Rep
// Check if the mirror has seen commits in paths we are interested in for
// this release.
ctx, cancel = context.WithTimeout(context.Background(), c.config.GitTimeout)
commits, err := repo.CommitsBetween(ctx, s.head, head, source.Path)
commits, err := repo.CommitsBetween(ctx, s.head, head, false, source.Path)
cancel()
if err != nil {
return sourceRef{}, false, ChartUnavailableError{err}
Expand Down

0 comments on commit 4d0666e

Please sign in to comment.