File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- echo " ***** Check license before commit * *****"
3
+ echo " ***** Check license headers before commit *****"
4
4
5
- ./gradlew checkLicense
5
+ if [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
6
+ ./gradlew.bat checkLicense
7
+ elif [ " $( expr substr $( uname -s) 1 4) " == " MSYS" ]; then
8
+ ./gradlew.bat checkLicense
9
+ else
10
+ ./gradlew checkLicense
11
+ fi
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ rootProject.name = "jacodb"
2
2
3
3
plugins {
4
4
`gradle- enterprise`
5
- id(" org.danilopianini.gradle-pre-commit-git-hooks" ) version " 1.0.25 "
5
+ id(" org.danilopianini.gradle-pre-commit-git-hooks" ) version " 1.1.11 "
6
6
}
7
7
8
8
gradleEnterprise {
@@ -14,10 +14,9 @@ gradleEnterprise {
14
14
15
15
gitHooks {
16
16
preCommit {
17
- // Content can be added at the bottom of the script
18
- from(file(" pre-commit" ).toURI().toURL())
17
+ from(file(" pre-commit" ))
19
18
}
20
- createHooks() // actual hooks creation
19
+ createHooks(true )
21
20
}
22
21
23
22
include(" jacodb-api" )
You can’t perform that action at this time.
0 commit comments