Фатальная ошибка при невозможности клонировать проект
This commit is contained in:
parent
14ee051dcb
commit
c3b01d865c
@ -70,7 +70,11 @@ function(myx_download_content NAME)
|
|||||||
if(ENABLE_DOWNLOAD_CONTENT AND GIT_EXECUTABLE AND ARG_GIT_REPOSITORY)
|
if(ENABLE_DOWNLOAD_CONTENT AND GIT_EXECUTABLE AND ARG_GIT_REPOSITORY)
|
||||||
if(NOT IS_DIRECTORY ${WORK_DIR})
|
if(NOT IS_DIRECTORY ${WORK_DIR})
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ARG_GIT_REPOSITORY} ${NAME}
|
execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ARG_GIT_REPOSITORY} ${NAME}
|
||||||
WORKING_DIRECTORY ${ARG_DOWNLOAD_DIR})
|
WORKING_DIRECTORY ${ARG_DOWNLOAD_DIR}
|
||||||
|
RESULT_VARIABLE clone_result)
|
||||||
|
if(NOT clone_result EQUAL 0)
|
||||||
|
myx_message_fatal_error("Git can't clone ${NAME} from ${ARG_GIT_REPOSITORY}")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
if(ARG_AUTOFETCH)
|
if(ARG_AUTOFETCH)
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} fetch
|
execute_process(COMMAND ${GIT_EXECUTABLE} fetch
|
||||||
|
Loading…
Reference in New Issue
Block a user