fixes #8588 - make repo indexing idempotent