aboutsummaryrefslogtreecommitdiff
path: root/kde-modules
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules')
-rw-r--r--kde-modules/KDEGitCommitHooks.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/kde-modules/KDEGitCommitHooks.cmake b/kde-modules/KDEGitCommitHooks.cmake
index 761175f1..dfcafe73 100644
--- a/kde-modules/KDEGitCommitHooks.cmake
+++ b/kde-modules/KDEGitCommitHooks.cmake
@@ -58,7 +58,8 @@ function(KDE_CONFIGURE_GIT_PRE_COMMIT_HOOK)
# In case of tarballs there is no .git directory
if (EXISTS ${GIT_DIR})
# The pre-commit hook is a bash script, consequently it won't work on non-unix platforms
- if (UNIX)
+ # git on Windows provides its own bash
+ if (UNIX OR WIN32)
if(KDE_CLANG_FORMAT_EXECUTABLE)
list(FIND ARG_CHECKS "CLANG_FORMAT" _index)
if (${_index} GREATER -1)