Skip to content

Commit

Permalink
Merge pull request #4 from kiview/patch-1
Browse files Browse the repository at this point in the history
Make hooks work on Windows
  • Loading branch information
tjni authored Dec 22, 2022
2 parents 53fc275 + 9a7df35 commit 52a7b86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static Path getGitHookScriptFile(Path gitHooksDir, GitHook gitHook) {

private static String getGitHookCommand(Path gitHooksDir, GitHook gitHook) {
Path gitHookScriptFile = gitHooksDir.relativize(getGitHookScriptFile(gitHooksDir, gitHook));
return "`dirname \"$0\"`" + File.separatorChar + gitHookScriptFile;
return "`dirname \"$0\"`" + "/" + gitHookScriptFile;
}

private Path addGitHook(Path gitHooksDir, GitHook gitHook) {
Expand Down

0 comments on commit 52a7b86

Please sign in to comment.