Skip to content

Commit 7a985fb

Browse files
committed
Add an explanatory comment on why we are zeroing out the global .gitconfig.
1 parent 922c7ea commit 7a985fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib-extra/src/main/java/com/diffplug/spotless/extra/GitAttributesLineEndings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ static class RuntimeInit {
193193
/////////////////////////////////
194194
// USER AND SYSTEM-WIDE VALUES //
195195
/////////////////////////////////
196-
FS.DETECTED.setGitSystemConfig(new File("no-global-git-config-for-spotless"));
196+
FS.DETECTED.setGitSystemConfig(new File("no-global-git-config-for-spotless")); // this fixes a problem
197+
// that was only occurring on Java 11. If we remove support for Java 11, we could probably remove it.
197198
systemConfig = SystemReader.getInstance().openSystemConfig(null, FS.DETECTED);
198199
Errors.log().run(systemConfig::load);
199200
userConfig = SystemReader.getInstance().openUserConfig(systemConfig, FS.DETECTED);

0 commit comments

Comments
 (0)