ctest with cdash submission issue

We have software with gitlab CI pipeline.

Up to now we have within the software a git submodule Teststuite with own CMakeLists.txt which is executed for testing via.

cmake .. -DCFS_INSTALL_DIR=/Users/fwein/code/cfs/release
ctest -D ExperimentalStart --track Gitlab   
ctest -D ExperimentalUpdate --track Gitlab

to submit the tests to our cdash instance.

Now we want to replace the git submodule with the direct content, but would like to keep the structure.

But the second cmake command fails:

ctest -D ExperimentalUpdate --track Gitlab
   Site: MacBookPro.fritz.box
   Build name: Darwin-unknown
   Updating the repository: /Users/fwein/code/no_testsuite/Testsuite
Cannot find UpdateCommand  configuration key.
Errors while running CTest

The reason is, that Testsuite is no repository any more, but the parent directory is one.

Do you have any hints where I can start digging?

The variables TESTSUITE_SOURCE_DIR and CMAKE_HOME_DIRECTORY are set, is any of them assumed to be the git repository?

I digged up to
https://gitlab.kitware.com/cmake/cmake/-/blob/v3.12.2/Source/CTest/cmCTestUpdateHandler.cxx

bool cmCTestUpdateHandler::SelectVCS()

git is found. I do not understand what is meant by configuration key?

By comparing to the running configuration, I found that in DartConfiguration.tcl
the variables GITCommand, UpdateCommand and UpdateType are not set (to /usr/bin/git, /usr/bin/git, git).

Any hint how I can enforce this information?

Thanks!

I guess I found it:
set( CTEST_GIT_COMMAND <path to git>)
prior
inlcude(CTest)