diff options
author | Hannah von Reth <vonreth@kde.org> | 2021-08-09 14:46:46 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2021-08-16 19:15:39 +0000 |
commit | 3a75f891f5a914280a2a23194d1a61b19387d8ae (patch) | |
tree | e051059935cac5d1b9917ef3992a8bcf889575a1 | |
parent | af19a0ef93af2bfecd93580849e9e005bc0c8ca6 (diff) | |
download | extra-cmake-modules-3a75f891f5a914280a2a23194d1a61b19387d8ae.tar.gz extra-cmake-modules-3a75f891f5a914280a2a23194d1a61b19387d8ae.tar.bz2 |
Enable KDEGitCommitHooks on Windows
Git on Windows provides bash
-rw-r--r-- | kde-modules/KDEGitCommitHooks.cmake | 3 |
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) |