Browse Source

Use a clean prefix when deploying

master
Leo Lamprecht 8 years ago
parent
commit
de0635e8b1
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 7
      lib/git.js

7
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
}

Loading…
Cancel
Save