Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
1 changed files with
6 additions and
1 deletions
-
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 |
|
|
|
} |
|
|
|