Fixes to the way we init a repo