File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,15 @@ tasks.withType<KorroTask> {
159
159
val installGitPreCommitHook by tasks.creating(Copy ::class ) {
160
160
doNotTrackState(/* reasonNotToTrackState = */ " Fails on TeamCity otherwise." )
161
161
162
- from(File (rootProject.rootDir, " gradle/scripts/pre-commit" ))
163
- into(File (rootProject.rootDir, " .git/hooks" ))
164
- fileMode = 755
162
+ val gitHooksDir = File (rootProject.rootDir, " .git/hooks" )
163
+ if (gitHooksDir.exists()) {
164
+ from(File (rootProject.rootDir, " gradle/scripts/pre-commit" ))
165
+ into(gitHooksDir)
166
+ fileMode = 755
167
+ } else {
168
+ logger.lifecycle(" '.git/hooks' directory not found. Skipping installation of pre-commit hook." )
169
+ }
170
+
165
171
}
166
172
tasks.named(" assemble" ) {
167
173
dependsOn(installGitPreCommitHook)
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ object PluginCallbackProxy : PluginCallback {
118
118
body =
119
119
"""
120
120
<details>
121
- <summary>${expressions.joinToSource()
121
+ <summary>${expressions.joinToString( " . " ) { it.source }
122
122
.also {
123
123
if (it.length > 95 ) TODO (" expression is too long ${it.length} . better to split sample in multiple snippets" )
124
124
}
You can’t perform that action at this time.
0 commit comments