We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d9925 commit 67d723aCopy full SHA for 67d723a
src/Git.cmake
@@ -346,12 +346,8 @@ function(git_add_remote)
346
endif()
347
348
execute_process(
349
- COMMAND "${GIT_EXECUTABLE}" "remote" "add" "${_fun_REMOTE_NAME}" "${_fun_REMOTE_URL}"
350
- WORKING_DIRECTORY "${_fun_REPOSITORY_PATH}" COMMAND_ERROR_IS_FATAL LAST
351
- )
352
- execute_process(
353
- COMMAND "${GIT_EXECUTABLE}" "fetch" "${_fun_REMOTE_NAME}" WORKING_DIRECTORY "${_fun_REPOSITORY_PATH}"
354
- COMMAND_ERROR_IS_FATAL LAST
+ COMMAND "${GIT_EXECUTABLE}" "remote" "add" "--fetch" "${_fun_REMOTE_NAME}" "${_fun_REMOTE_URL}"
+ WORKING_DIRECTORY "${_fun_REPOSITORY_PATH}"
355
)
356
357
endfunction()
0 commit comments