diff --git a/lib/git.js b/lib/git.js index 8123514..0b1e91e 100644 --- a/lib/git.js +++ b/lib/git.js @@ -41,7 +41,12 @@ const downloadRepo = async repoPath => { } const tmpContents = await fs.readdir(tmpDir.path) - tmpDir.path = path.join(tmpDir.path, tmpContents[0]) + + const oldTemp = path.join(tmpDir.path, tmpContents[0]) + const newTemp = path.join(tmpDir.path, pathParts.main.replace('/', '-')) + + await fs.rename(oldTemp, newTemp) + tmpDir.path = newTemp return tmpDir }