Skip to content

Commit b940ada

Browse files
authored
Merge pull request #338 from Tapchicoma/fix-git-hook
Fix git hook will fail to run on multiple kotlin files.
2 parents 5caa775 + 43f1efc commit b940ada

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
1111
### Changed
1212
- ?
1313
### Fixed
14-
- ?
14+
- Git hook fails to check multiple files [#336](https://github.com/JLLeitschuh/ktlint-gradle/issues/336)
1515
### Removed
1616
- ?
1717

Diff for: plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/GitHook.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private fun generateGradleCommand(
3030
} else {
3131
"./gradlew"
3232
}
33-
return "$gradleCommand --quiet $taskName -P$FILTER_INCLUDE_PROPERTY_NAME=${'$'}CHANGED_FILES"
33+
return "$gradleCommand --quiet $taskName -P$FILTER_INCLUDE_PROPERTY_NAME=\"${'$'}CHANGED_FILES\""
3434
}
3535

3636
private fun generateGitCommand(

0 commit comments

Comments
 (0)