Make sure repo-local ops happen in the repo dir