From 732af7fbba47d1f88fdaed6b9fac520e8e06313c Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Mar 2011 13:57:30 -0500 Subject: [PATCH] CTest: Do not fail with submodules and Git < 1.6.5.0 Several major Linux distributions still do not provide Git >= 1.6.5.0 in their stable package lists. Prior to commit 1173cc4a (Update Git submodules with --recursive, 2011-02-22) CTest was able to use older Git versions but simply silently failed to update submodules recursively. Instead of failing with older Git versions preserve the status quo and add a warning in the update log. Users testing projects with recursive submodules may simply update to a Git new enough to support them. --- Source/CTest/cmCTestGIT.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx index 3f55f85bf7..2c1a0afd98 100644 --- a/Source/CTest/cmCTestGIT.cxx +++ b/Source/CTest/cmCTestGIT.cxx @@ -281,8 +281,7 @@ bool cmCTestGIT::UpdateImpl() // No need to require >= 1.6.5.0 if there are no submodules. if(cmSystemTools::FileExists((top_dir + "/.gitmodules").c_str())) { - this->Log << "Git >= 1.6.5.0 required for submodule support\n"; - return false; + this->Log << "Git < 1.6.5.0 cannot update submodules recursively\n"; } }