working list-repos

Patches that make list-repos work again