Refactor get repos
Merge pull request #1 from nkt/patch-1

Refactor get repos