Fix creating an instance of a repo

Discussion: http://git.io/_p-m1Q