This is an automated email from the ASF dual-hosted git repository. masaori pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new d50428d9a8 Adjust CMakeLists with git worktree (#10298) d50428d9a8 is described below commit d50428d9a81c21a1a46d2169ffa99a472124bea7 Author: Masaori Koshiba <masa...@apache.org> AuthorDate: Mon Sep 4 15:29:47 2023 +0900 Adjust CMakeLists with git worktree (#10298) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97ff35f022..1b9914ad93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -479,7 +479,7 @@ add_custom_target(format COMMENT "formatting all files" ) -if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) +if(IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.git AND NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) message(STATUS "Installing github hook") configure_file(${CMAKE_SOURCE_DIR}/tools/git/pre-commit ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit COPYONLY) endif()