fixes #8588 - make repo indexing idempotent
Merge pull request #4851 from stbenjam/8588

fixes #8588 - make repo indexing idempotent