Skip to content

Commit

Permalink
fix : chmod 명령을 실행(Execution) 단계에서 실행하도록 변경한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Mar 1, 2024
1 parent 6f1d536 commit 85acd26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BE/eeos/tasks/install-git-hooks.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
tasks.create(name: 'gitExecutableHooks') {
Runtime.getRuntime().exec("chmod -R +x ../../.git/hooks/");
doLast {
Runtime.getRuntime().exec("chmod -R +x ../../.git/hooks/")
}
}

task installGitHooks(type: Copy) {
String scriptDir = rootProject.rootDir.toString() + '/scripts'
from new File(scriptDir, 'pre-commit')
into { new File(rootProject.rootDir, '../../.git/hooks') }
into { new File(rootProject.rootDir, '.git/hooks') }
}

gitExecutableHooks.dependsOn installGitHooks
Expand Down

0 comments on commit 85acd26

Please sign in to comment.