Specify the CTest GITUpdateOptions setting in a ctest3(1) dashboard client script.
GITUpdateOptions
ctest3(1)
CTEST_GIT_UPDATE_CUSTOM
CTEST_HG_COMMAND