Skip to content

Commit 23d7418

Browse files
committed
Checkout (restore) instead of reset branch head
1 parent 3b919e2 commit 23d7418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testRunner/externalCompileRunner.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace Harness {
5858
if (!fs.existsSync(submoduleDir)) {
5959
exec("git", ["clone", config.cloneUrl, directoryName], { cwd });
6060
}
61-
exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir });
61+
exec("git", ["checkout", ":/"], { cwd: submoduleDir });
6262
exec("git", ["clean", "-f"], { cwd: submoduleDir });
6363
exec("git", ["pull", "-f"], { cwd: submoduleDir });
6464

@@ -337,4 +337,4 @@ ${stderr.replace(/\r\n/g, "\n")}`;
337337
}
338338
return result;
339339
}
340-
}
340+
}

0 commit comments

Comments
 (0)