Skip to content

Commit 389806b

Browse files
committed
Avoid reading user's global Git config
1 parent 662b9ea commit 389806b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ private static ProcessResult tryExecGit(Path workingDir, String... arguments) th
280280
System.out.println("$ git " + String.join(" ", arguments));
281281
return new ProcessStarter() //
282282
.executable(Path.of("git")) //
283+
.putEnvironment("GIT_CONFIG_GLOBAL", "/dev/null") // https://git-scm.com/docs/git#Documentation/git.txt-GITCONFIGGLOBAL
283284
.workingDir(workingDir) //
284285
.addArguments(arguments) //
285286
.startAndWait();

0 commit comments

Comments
 (0)