Fixes #5769: don't allow multiple repository type at the same time