Skip to content

Commit f6eef6f

Browse files
authored
Fix duplicate drafts in package revision list (#3052)
The code should append individual draft when it matches the filter, not all of them.
1 parent 4c5d2d3 commit f6eef6f

File tree

1 file changed

+1
-1
lines changed
  • porch/repository/pkg/git

1 file changed

+1
-1
lines changed

porch/repository/pkg/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (r *gitRepository) ListPackageRevisions(ctx context.Context, filter reposit
213213

214214
for _, p := range drafts {
215215
if filter.Matches(p) {
216-
result = append(result, drafts...)
216+
result = append(result, p)
217217
}
218218
}
219219

0 commit comments

Comments
 (0)