repoDir -> tmpDir