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
6
6
import org.gradle.jvm.tasks.Jar
7
7
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
8
8
import org.jmailen.gradle.kotlinter.tasks.LintTask
9
+ import xyz.ronella.gradle.plugin.simple.git.OSType
9
10
import xyz.ronella.gradle.plugin.simple.git.task.GitTask
10
11
11
12
plugins {
@@ -173,6 +174,14 @@ val installGitPreCommitHook by tasks.creating(Copy::class) {
173
174
from(File (rootProject.rootDir, " gradle/scripts/pre-commit" ))
174
175
into(gitHooksDir)
175
176
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
+ }
176
185
} else {
177
186
logger.lifecycle(" '.git/hooks' directory not found. Skipping installation of pre-commit hook." )
178
187
}
You can’t perform that action at this time.
0 commit comments