File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,15 +200,18 @@ if (KNP_ENABLE_AVX)
200200 # -include bits/stdc++.h
201201endif ()
202202
203- if (NOT KNP_MAINTAINER_BUILD AND KNP_BUILD_AUTONOMOUS)
204- execute_process (COMMAND pre-commit install
205- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} " )
206- if (ret AND NOT ret EQUAL 0)
207- message (FATAL_ERROR "Cannot install pre-commit hooks." )
208- endif ()
209- execute_process (COMMAND pre-commit install -t commit-msg
210- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} " )
211- endif ()
203+ # TODO: fix it!
204+ # An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
205+ # Check the log at /root/.cache/pre-commit/pre-commit.log
206+ #if (NOT KNP_MAINTAINER_BUILD AND KNP_BUILD_AUTONOMOUS)
207+ # execute_process(COMMAND pre-commit install
208+ # WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
209+ # if(ret AND NOT ret EQUAL 0)
210+ # message(FATAL_ERROR "Cannot install pre-commit hooks.")
211+ # endif()
212+ # execute_process(COMMAND pre-commit install -t commit-msg
213+ # WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
214+ #endif()
212215
213216if (KNP_BUILD_TESTS)
214217 add_compile_definitions (SPDLOG_ACTIVE_LEVEL=0 )
You can’t perform that action at this time.
0 commit comments