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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to