]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix(format): Remove auto install of previous hook
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Mon, 18 Dec 2023 07:44:58 +0000 (08:44 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Mon, 18 Dec 2023 07:45:51 +0000 (08:45 +0100)
CMakeLists.txt

index 2cefc6d4f5b30a86af3323bcf820b9d2f52c3db8..fda28f7e3892d2b564c1cf36ad1dfa3f3165da33 100644 (file)
@@ -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()