Skip to content

Commit 4a537cd

Browse files
committed
Fix for clone destination path issue
1 parent b1e1a33 commit 4a537cd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

API/addRepoApi.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ async function addRepoHandler(
4242
}
4343

4444
if (cloneCheck) {
45-
const cloneStatus = await execPromisified(`git clone "${cloneUrl}"`, {
46-
cwd: repoPath,
47-
windowsHide: true,
48-
})
45+
const cloneStatus = await execPromisified(
46+
`git clone "${cloneUrl}" "${repoName}"`,
47+
{
48+
cwd: repoPath,
49+
windowsHide: true,
50+
}
51+
)
4952
.then(({ stdout, stderr }) => {
5053
console.log(stdout);
5154
console.log(stderr);

0 commit comments

Comments
 (0)