From: SONOLET Aymeric Date: Mon, 18 Dec 2023 07:44:58 +0000 (+0100) Subject: fix(format): Remove auto install of previous hook X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aba7955ecf66352c7491361f9a1ccc693976c499;p=modules%2Fshaper.git fix(format): Remove auto install of previous hook --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cefc6d4f..fda28f7e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,17 +259,3 @@ configure_file("${CMAKE_SOURCE_DIR}/CMakeCommon/cmake_uninstall.cmake.in" add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) endif (CMAKE_GENERATOR MATCHES "NMake Makefiles") - -# Add special Git hooks -if((EXISTS "${CMAKE_SOURCE_DIR}/.git") AND (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")) - if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.git") - set(GIT_SUBMODULE_PATH ".git") - else() - file(READ "${CMAKE_CURRENT_SOURCE_DIR}/.git" GIT_SUBMODULE_PATH) - string(REGEX REPLACE "gitdir: " "" GIT_SUBMODULE_PATH "${GIT_SUBMODULE_PATH}") - string(REGEX REPLACE "\n" "" GIT_SUBMODULE_PATH "${GIT_SUBMODULE_PATH}") - endif() - - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitHooks/pre-commit.in" - "${CMAKE_CURRENT_SOURCE_DIR}/${GIT_SUBMODULE_PATH}/hooks/pre-commit") -endif()