mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 12:30:46 +03:00
TMP / Fixed pre-commit git hook permissions for modern CMake
This commit is contained in:
parent
2f57a06ebd
commit
c095e4a049
@ -37,7 +37,7 @@ if (DEV_MODE)
|
||||
|
||||
if (${CMAKE_VERSION} VERSION_LESS "3.19.0")
|
||||
if (${CMAKE_HOST_UNIX})
|
||||
execute_process(COMMAND chmod "+x" "${pre_commit_hook}"
|
||||
execute_process(COMMAND chmod "755" "${pre_commit_hook}"
|
||||
RESULT_VARIABLE chmod_RESULT)
|
||||
if (${chmod_RESULT})
|
||||
message(FATAL_ERROR "Could not make git pre-commit hook executable")
|
||||
@ -45,7 +45,10 @@ if (DEV_MODE)
|
||||
endif()
|
||||
else()
|
||||
file(CHMOD "${pre_commit_hook}"
|
||||
PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
|
||||
PERMISSIONS
|
||||
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE)
|
||||
endif()
|
||||
endif()
|
||||
unset(pre_commit_hook)
|
||||
|
Loading…
x
Reference in New Issue
Block a user