From 4c550077b4b15fcdbebbce2bab613d60a87a072e Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Fri, 15 Feb 2019 10:02:38 -0700 Subject: [PATCH] WIP: Add CTEST_GIT_UPDATE_CUSTOM for every command-line arugment (#278) So you need to use semi-colons for every argument in a **single** shell command! --- tribits/ctest_driver/TribitsCTestDriverCore.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tribits/ctest_driver/TribitsCTestDriverCore.cmake b/tribits/ctest_driver/TribitsCTestDriverCore.cmake index 3ab4eca3e..a67666e3c 100644 --- a/tribits/ctest_driver/TribitsCTestDriverCore.cmake +++ b/tribits/ctest_driver/TribitsCTestDriverCore.cmake @@ -1782,12 +1782,18 @@ FUNCTION(TRIBITS_CTEST_DRIVER) # Set the git update command for an already cloned repo # + # CTest always needs the raw git command in order to do stuff like get the + # version of the repo before and after the update, even if you provide a + # custom update command. SET(CTEST_GIT_COMMAND "${GIT_EXE}") MESSAGE("CTEST_GIT_COMMAND=${CTEST_GIT_COMMAND}") # NOTE: You can't put the above command "${GIT_EXE}" in quotes like # "'${GIT_EXE}'" or "\"${GIT_EXE}\"" or it will not work and # ctest_update() will return failed! + # Provide a custom command to do the update + SET(CTEST_GIT_UPDATE_CUSTOM "${GIT_EXE};pull") + ENDIF() #