diff options
author | Brad King <brad.king@kitware.com> | 2011-03-10 18:57:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-10 18:57:30 (GMT) |
commit | 732af7fbba47d1f88fdaed6b9fac520e8e06313c (patch) | |
tree | 27c8cf2745c7e8244b51c383ac4eced0c16e46f9 /Source/CTest/cmCTestGIT.cxx | |
parent | 1173cc4ab2dc23a2ac51442273127d2f909f3bc8 (diff) | |
download | CMake-732af7fbba47d1f88fdaed6b9fac520e8e06313c.zip CMake-732af7fbba47d1f88fdaed6b9fac520e8e06313c.tar.gz CMake-732af7fbba47d1f88fdaed6b9fac520e8e06313c.tar.bz2 |
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.
Diffstat (limited to 'Source/CTest/cmCTestGIT.cxx')
-rw-r--r-- | Source/CTest/cmCTestGIT.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx index 3f55f85..2c1a0af 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"; } } |