moved getrepo out to dorepos