File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import nl.jolanrensen.docProcessor.gradle.creatingProcessDocTask
66import org.gradle.jvm.tasks.Jar
77import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
88import org.jmailen.gradle.kotlinter.tasks.LintTask
9+ import xyz.ronella.gradle.plugin.simple.git.OSType
910import xyz.ronella.gradle.plugin.simple.git.task.GitTask
1011
1112plugins {
@@ -173,6 +174,14 @@ val installGitPreCommitHook by tasks.creating(Copy::class) {
173174 from(File (rootProject.rootDir, " gradle/scripts/pre-commit" ))
174175 into(gitHooksDir)
175176 fileMode = 755
177+
178+ // Workaround for https://github.com/Kotlin/dataframe/issues/612
179+ if (OSType .identify() in listOf (OSType .Mac , OSType .Linux )) doLast {
180+ exec {
181+ workingDir(gitHooksDir)
182+ commandLine(" chmod" , " 755" , " pre-commit" )
183+ }
184+ }
176185 } else {
177186 logger.lifecycle(" '.git/hooks' directory not found. Skipping installation of pre-commit hook." )
178187 }
You can’t perform that action at this time.
0 commit comments