summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-22 13:19:06 (GMT)
committerBrad King <brad.king@kitware.com>2009-04-22 13:19:06 (GMT)
commit9c17cbeb44f4e47dd8f6a2cda57c3967b293cdfe (patch)
treef31f0e20ee3c74d471870b83e571c70c45ef6141 /Source/CTest/cmCTestUpdateCommand.cxx
parentd25289ad9254c67d8231c6582b4b9a35daa8297c (diff)
downloadCMake-9c17cbeb44f4e47dd8f6a2cda57c3967b293cdfe.zip
CMake-9c17cbeb44f4e47dd8f6a2cda57c3967b293cdfe.tar.gz
CMake-9c17cbeb44f4e47dd8f6a2cda57c3967b293cdfe.tar.bz2
ENH: Teach CTest to handle git repositories
This creates cmCTestGIT to drive CTest Update handling on git-based work trees. Currently we always update to the head of the remote tracking branch (git pull), so the nightly start time is ignored for Nightly builds. A later change will address this. See issue #6994.
Diffstat (limited to 'Source/CTest/cmCTestUpdateCommand.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateCommand.cxx b/Source/CTest/cmCTestUpdateCommand.cxx
index 913478a..9c8e1ef 100644
--- a/Source/CTest/cmCTestUpdateCommand.cxx
+++ b/Source/CTest/cmCTestUpdateCommand.cxx
@@ -48,6 +48,10 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
"SVNCommand", "CTEST_SVN_COMMAND");
this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
"SVNUpdateOptions", "CTEST_SVN_UPDATE_OPTIONS");
+ this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
+ "GITCommand", "CTEST_GIT_COMMAND");
+ this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
+ "GITUpdateOptions", "CTEST_GIT_UPDATE_OPTIONS");
const char* initialCheckoutCommand
= this->Makefile->GetDefinition("CTEST_CHECKOUT_COMMAND");