From 7e3d3373d890e4c51f5bb1bd92abcce70e766cf4 Mon Sep 17 00:00:00 2001 From: Damien Caliste Date: Wed, 8 Sep 2021 16:13:42 +0200 Subject: Avoid raising an error for submodule git trees. --- kde-modules/KDEGitCommitHooks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kde-modules') 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) -- cgit v1.2.1