Skip to content

Commit

Permalink
Use a clean prefix when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Nov 28, 2016
1 parent 9bfa06f commit de0635e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/git.js
Expand Up @@ -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
}
Expand Down

0 comments on commit de0635e

Please sign in to comment.