Skip to content

Commit

Permalink
Fix duplicate drafts in package revision list (#3052)
Browse files Browse the repository at this point in the history
The code should append individual draft when it matches the filter, not
all of them.
  • Loading branch information
martinmaly committed Apr 22, 2022
1 parent 4c5d2d3 commit f6eef6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porch/repository/pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (r *gitRepository) ListPackageRevisions(ctx context.Context, filter reposit

for _, p := range drafts {
if filter.Matches(p) {
result = append(result, drafts...)
result = append(result, p)
}
}

Expand Down

0 comments on commit f6eef6f

Please sign in to comment.