Commit 4efc1a1
committed
Fix path separator for Windows in git hook generation
The gradleRootDirPrefix was using platform-specific path separators
(backslash on Windows), but git hook scripts always require forward
slashes. This caused tests to fail on Windows.
Changed to always use forward slashes by replacing File.separator
with "/" when constructing gradleRootDirPrefix.
Fixes test failures on windows-latest CI runners.1 parent 225f9e1 commit 4efc1a1
File tree
1 file changed
+1
-1
lines changed- plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
0 commit comments