Skip to content

Commit 0a50057

Browse files
committed
Checkout (restore) instead of reset branch head
1 parent b968922 commit 0a50057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testRunner/externalCompileRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
5757
if (!fs.existsSync(submoduleDir)) {
5858
exec("git", ["clone", config.cloneUrl, directoryName], { cwd });
5959
}
60-
exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir });
60+
exec("git", ["checkout", "."], { cwd: submoduleDir });
6161
exec("git", ["clean", "-f"], { cwd: submoduleDir });
6262
exec("git", ["pull", "-f"], { cwd: submoduleDir });
6363

0 commit comments

Comments
 (0)