Skip to content

Commit

Permalink
fix: ignore duplicate explicit repos
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikp10 committed Jan 11, 2023
1 parent 00d7677 commit 1d6c0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const getExplicitRepoList = (
const addedRepos: Repo[] = [];

for (const repo of explicitRepos) {
if (repos.some((r) => repoMatches(r, repo))) {
if (repos.some((r) => repoMatches(r, repo)) || addedRepos.some((r) => repoMatches(r, repo))) {
LOGGER.debug(
`Skipping adding ${sourceInfo.repoTerm} ${repo.owner}/${repo.name} as we already got it from the ${sourceInfo.orgTerm}`
);
Expand Down

0 comments on commit 1d6c0d6

Please sign in to comment.