cmCTestGIT: fix git version references

Git does not use a 4-component version number.
This commit is contained in:
Ben Boeckel 2016-03-31 12:31:31 -04:00 committed by Brad King
parent 90f24f016e
commit 56c1ea40c5
1 changed files with 3 additions and 3 deletions

View File

@ -274,14 +274,14 @@ bool cmCTestGIT::UpdateImpl()
const char* git = this->CommandLineTool.c_str(); const char* git = this->CommandLineTool.c_str();
const char* recursive = "--recursive"; const char* recursive = "--recursive";
// Git < 1.6.5.0 did not support --recursive // Git < 1.6.5 did not support submodule --recursive
if(this->GetGitVersion() < cmCTestGITVersion(1,6,5,0)) if(this->GetGitVersion() < cmCTestGITVersion(1,6,5,0))
{ {
recursive = 0; recursive = 0;
// No need to require >= 1.6.5.0 if there are no submodules. // No need to require >= 1.6.5 if there are no submodules.
if(cmSystemTools::FileExists((top_dir + "/.gitmodules").c_str())) if(cmSystemTools::FileExists((top_dir + "/.gitmodules").c_str()))
{ {
this->Log << "Git < 1.6.5.0 cannot update submodules recursively\n"; this->Log << "Git < 1.6.5 cannot update submodules recursively\n";
} }
} }