Skip to content

Commit 6b080fd

Browse files
committed
Checkout (restore) instead of reset branch head
1 parent 6f079a4 commit 6b080fd

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
@@ -59,7 +59,7 @@ namespace Harness {
5959
exec("git", ["clone", config.cloneUrl, directoryName], { cwd });
6060
}
6161
else {
62-
exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir });
62+
exec("git", ["checkout", ":/"], { cwd: submoduleDir });
6363
exec("git", ["clean", "-f"], { cwd: submoduleDir });
6464
exec("git", ["pull", "-f"], { cwd: submoduleDir });
6565
}

0 commit comments

Comments
 (0)