[cmake-developers] [CMake 0013221]: New submodules are not cloned when parent repository is Git Updated via CTest.

Mantis Bug Tracker mantis at public.kitware.com
Tue May 15 04:09:25 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13221 
====================================================================== 
Reported By:                Zog Zog
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13221
Category:                   CTest
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-05-15 03:09 CDT
Last Modified:              2012-05-15 03:09 CDT
====================================================================== 
Summary:                    New submodules are not cloned when parent repository
is Git Updated via CTest.
Description: 
When a new submodule is added to a repository, the "ctest_update" command in a
CTest script does not initialize the new submodule.

So, I modified CTest/cmCTestGIT.cxx and changed cmCTestGIT::UpdateImpl() :

< char const* git_submodule[] = {git,"submodule", "update", recursive, 0};
> char const* git_submodule[] = {git,"submodule", "update", "--init", recursive,
0};

There surely is a cleaner way to do this, I suppose.

Steps to Reproduce: 
- add a new submodule to a repository
- ctest_update() the repository
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-15 03:09 Zog Zog        New Issue                                    
======================================================================




More information about the cmake-developers mailing list