ctest_update() CTEST_UPDATE_VERSION_ONLY does not work with read only source directory
I use ctest_update() with CTEST_UPDATE_VERSION_ONLY. I would expect such a thing to work in a read-only filesystem, I'm only asking to discover the current version that is ALREADY checked out.
But probably because of the git update-index --refresh
call from https://gitlab.kitware.com/cmake/cmake/blob/c3d9d800157a8fe2c0478d7e054544b99694c240/Source/CTest/cmCTestGIT.cxx#L636 this fails to work. I end up with a CDash report saying the correct revision, but also (wrongly) saying a lot of files are modified.