Boost C++ Libraries: Ticket #10036: Submodules not cleaned https://svn.boost.org/trac10/ticket/10036 <p> regression.py cleans the source directory of the super-project, but not the submodules. The "git status" command it runs just after cleaning shows this for me: </p> <pre class="wiki">On branch develop Your branch is up-to-date with 'origin/develop'. Changes not staged for commit: (use "git add &lt;file&gt;..." to update what will be committed) (use "git checkout -- &lt;file&gt;..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: libs/interprocess (modified content) modified: libs/numeric/odeint (untracked content) modified: tools/build (modified content, untracked content) no changes added to commit (use "git add" and/or "git commit -a") </pre><p> The changes in libs/interprocess were caused by my patch_boost script. The changes in libs/numeric/odeint were generated files. The changes in tools/build were generated files plus manual changes I made to test something between runs. </p> <p> Adding the following command would appear to fix it: </p> <pre class="wiki">git submodule foreach "(git reset --hard; git clean -fxd)" </pre><p> While researching this I stumbled upon the fact that orphaned submodule directories aren't removed by git clean unless you pass it -ffxd (see the help for the -d option). However this will remove submodules that are present in another branch but not the current one, which may or may not be a good idea. </p> <p> Regards </p> <p> Niklas Angare </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10036 Trac 1.4.3 Niklas Angare <li51ckf02@…> Tue, 10 Jun 2014 09:33:43 GMT <link>https://svn.boost.org/trac10/ticket/10036#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10036#comment:1</guid> <description> <p> After discussion on the testing mailing list ("Submodules not cleaned"), this was fixed on the develop branch (commit ac7fc73f). </p> <p> It later turned out that the quoting used in the Python code gave an error with Git 1.9 on Windows (testing list "New Windows Runner reset hard error"). I'm attaching a patch that fixes it. It works for me with both Git 1.8.3 and 1.9.2 on Windows and Git 1.9.2 on QNX and for Tom Kent on Windows. </p> </description> <category>Ticket</category> </item> <item> <author>Niklas Angare <li51ckf02@…></author> <pubDate>Tue, 10 Jun 2014 09:35:17 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/10036 https://svn.boost.org/trac10/ticket/10036 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">regression.py.patch</span> </li> </ul> <p> Fix for unknown option hard </p> Ticket Thomas Kent <teeks99@…> Wed, 25 Jun 2014 13:09:46 GMT <link>https://svn.boost.org/trac10/ticket/10036#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10036#comment:2</guid> <description> <p> I've got a runner that can't be set to run automatically until this patch is committed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 25 Jun 2014 21:01:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10036#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10036#comment:3</guid> <description> <p> Just pushed this to develop. </p> </description> <category>Ticket</category> </item> <item> <author>Thomas Kent <teeks99@…></author> <pubDate>Thu, 26 Jun 2014 13:50:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10036#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10036#comment:4</guid> <description> <p> I see that it was pushed to develop, then backed out again? Was there a problem? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Noel Belcourt</dc:creator> <pubDate>Thu, 26 Jun 2014 15:45:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10036#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10036#comment:5</guid> <description> <p> I was afraid I'd broken some testers so I reverted it. It now seems that was unnecessary so I'll re-apply the patch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Fri, 02 Jan 2015 20:22:35 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/10036#comment:6 https://svn.boost.org/trac10/ticket/10036#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">René Rivera</span> to <span class="trac-author">Noel Belcourt</span> </li> </ul> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/10036#comment:5" title="Comment 5">noel_belcourt</a>: </p> <blockquote class="citation"> <p> I was afraid I'd broken some testers so I reverted it. It now seems that was unnecessary so I'll re-apply the patch. </p> </blockquote> <p> Did you re-apply the patch? Just wondering if we can close this. </p> Ticket René Rivera Fri, 02 Jan 2015 20:25:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10036#comment:7 https://svn.boost.org/trac10/ticket/10036#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Never mind.. I see that it's been applied and it's in the new regression repo version. So closing. </p> Ticket