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> {
159159val installGitPreCommitHook by tasks.creating(Copy ::class ) {
160160 doNotTrackState(/* reasonNotToTrackState = */ " Fails on TeamCity otherwise." )
161161
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+
165171}
166172tasks.named(" assemble" ) {
167173 dependsOn(installGitPreCommitHook)
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ object PluginCallbackProxy : PluginCallback {
118118 body =
119119 """
120120 <details>
121- <summary>${expressions.joinToSource()
121+ <summary>${expressions.joinToString( " . " ) { it.source }
122122 .also {
123123 if (it.length > 95 ) TODO (" expression is too long ${it.length} . better to split sample in multiple snippets" )
124124 }
You can’t perform that action at this time.
0 commit comments