chdir to repo before fetching