Hi Ross,
Here is how I do it in my case:
...
# Initial checkout if no source directory
if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
message("Initial checkout...")
set(CTEST_CHECKOUT_COMMAND "git clone --branch ${GIT_BRANCH}
${REPOSITORY} ${SOURCE_DIR_NAME}")
endif()
# Initialize testing
Hello,
Is there a built-in way to get a ctest -S script to checkout and pull from a
git branch other than 'master'? I can't seem to find a way to so this and
there is no mention of branches at all in the official documentation: