diff options
author | Damien Caliste <dcaliste@free.fr> | 2021-09-08 16:13:42 +0200 |
---|---|---|
committer | Damien Caliste <dcaliste@free.fr> | 2021-09-20 10:11:31 +0200 |
commit | 7e3d3373d890e4c51f5bb1bd92abcce70e766cf4 (patch) | |
tree | 01114d43edc2e964cf3de28fd1e333fa3c01a5d0 | |
parent | 6005d784f03a0f480c3286cce605a8ea3ff8eede (diff) | |
download | extra-cmake-modules-7e3d3373d890e4c51f5bb1bd92abcce70e766cf4.tar.gz extra-cmake-modules-7e3d3373d890e4c51f5bb1bd92abcce70e766cf4.tar.bz2 |
Avoid raising an error for submodule git trees.
-rw-r--r-- | kde-modules/KDEGitCommitHooks.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/KDEGitCommitHooks.cmake b/kde-modules/KDEGitCommitHooks.cmake index dfcafe73..c00c4c5f 100644 --- a/kde-modules/KDEGitCommitHooks.cmake +++ b/kde-modules/KDEGitCommitHooks.cmake @@ -56,7 +56,7 @@ function(KDE_CONFIGURE_GIT_PRE_COMMIT_HOOK) set(GIT_DIR "${CMAKE_SOURCE_DIR}/.git") # In case of tarballs there is no .git directory - if (EXISTS ${GIT_DIR}) + if (IS_DIRECTORY ${GIT_DIR}) # The pre-commit hook is a bash script, consequently it won't work on non-unix platforms # git on Windows provides its own bash if (UNIX OR WIN32) |