Skip to content

Commit

Permalink
Add an explanatory comment on why we are zeroing out the global .gitc…
Browse files Browse the repository at this point in the history
…onfig.
  • Loading branch information
nedtwigg committed Jan 6, 2025
1 parent 922c7ea commit 7a985fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ static class RuntimeInit {
/////////////////////////////////
// USER AND SYSTEM-WIDE VALUES //
/////////////////////////////////
FS.DETECTED.setGitSystemConfig(new File("no-global-git-config-for-spotless"));
FS.DETECTED.setGitSystemConfig(new File("no-global-git-config-for-spotless")); // this fixes a problem
// that was only occurring on Java 11. If we remove support for Java 11, we could probably remove it.
systemConfig = SystemReader.getInstance().openSystemConfig(null, FS.DETECTED);
Errors.log().run(systemConfig::load);
userConfig = SystemReader.getInstance().openUserConfig(systemConfig, FS.DETECTED);
Expand Down

0 comments on commit 7a985fb

Please sign in to comment.