Skip to content

Commit

Permalink
WIP: Add CTEST_GIT_UPDATE_CUSTOM for every command-line arugment (Tri…
Browse files Browse the repository at this point in the history
…BITSPub#278)

So you need to use semi-colons for every argument in a **single** shell
command!
  • Loading branch information
bartlettroscoe committed Feb 15, 2019
1 parent 2333cfa commit 4c55007
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tribits/ctest_driver/TribitsCTestDriverCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

#
Expand Down

0 comments on commit 4c55007

Please sign in to comment.