Skip to content

Commit d304049

Browse files
authored
Run user test submodule update in the correct directory (#32921)
1 parent 786e36e commit d304049

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
@@ -52,7 +52,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
5252
const submoduleDir = path.join(cwd, directoryName);
5353
exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir });
5454
exec("git", ["clean", "-f"], { cwd: submoduleDir });
55-
exec("git", ["submodule", "update", "--init", "--remote", "."], { cwd: submoduleDir });
55+
exec("git", ["submodule", "update", "--init", "--remote", "."], { cwd: originalCwd });
5656

5757
const config = JSON.parse(fs.readFileSync(path.join(cwd, "test.json"), { encoding: "utf8" })) as UserConfig;
5858
ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present.");

0 commit comments

Comments
 (0)