Try setting local repo in code.