From 3a75f891f5a914280a2a23194d1a61b19387d8ae Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 9 Aug 2021 14:46:46 +0200 Subject: Enable KDEGitCommitHooks on Windows Git on Windows provides bash --- kde-modules/KDEGitCommitHooks.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kde-modules') 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) -- cgit v1.2.1