[extension] Fix path
This commit is contained in:
parent
5405e38ef9
commit
88be84bb62
@ -76,19 +76,11 @@ export async function cloneAndOpenRepo(contestId: number, teamId: number) {
|
||||
fs.removeSync(clonedRepoPath);
|
||||
}
|
||||
|
||||
// child_process.exec(
|
||||
// `git clone ${repoUrl}`,
|
||||
// { cwd: `${currentSettings.repoClonePath}/BWContest/${contestId.toString()}` },
|
||||
// (error, stdout, stderr) => {
|
||||
// if (error) {
|
||||
// vscode.window.showErrorMessage(`BWContest: Failed to clone repo: ${error.message}`);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
const dir = path.join(currentSettings.repoClonePath, 'BWContest', contestId.toString());
|
||||
const dir = path.join(currentSettings.repoClonePath, 'BWContest', contestId.toString(), repoName);
|
||||
await git.clone({ fs, http, dir, url: repoUrl });
|
||||
|
||||
closeAllWorkspaces();
|
||||
|
||||
const addedFolder = vscode.workspace.updateWorkspaceFolders(
|
||||
vscode.workspace.workspaceFolders?.length ?? 0,
|
||||
0,
|
||||
|
Loading…
Reference in New Issue
Block a user