aboutsummaryrefslogtreecommitdiff
path: root/kde-modules
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules')
-rw-r--r--kde-modules/KDEGitCommitHooks.cmake2
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)