Skip to content

Commit 735bcf6

Browse files
author
ntwigg
committed
Revert "Remove workaround introduced in 0c66cb0"
This reverts commit 47011f8.
1 parent 8a4159a commit 735bcf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

0 commit comments

Comments
 (0)