Skip to content

Commit 59caa82

Browse files
author
Artiom N.
committed
Disable pre-commit hooks autoinstall: #112
1 parent cf65e63 commit 59caa82

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,18 @@ if (KNP_ENABLE_AVX)
200200
# -include bits/stdc++.h
201201
endif()
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

213216
if (KNP_BUILD_TESTS)
214217
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=0)

0 commit comments

Comments
 (0)