2025-07-18 14:56 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002628Spring engineBuildbotpublic2011-08-31 19:45
Reporterabma 
Assigned Toabma 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionnot fixable 
Product Version 
Target VersionFixed in Version 
Summary0002628: removing submodules doesn't remove the files in real
Descriptionsee shard as example.

could be removed by adding the step: "git clean -d -f"

edit: git clean seems to not remove git directories, other solutions welcome :-/
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007311

hoijui (reporter)

i think there is no such way to do that automatically on the server.
if you think about it, it also makes sense...
having a command like that would potentially delete history (in the submodule) that you only have locally. there is no clean, simple, automatic and secure way to ensure that this would not happen.
This is also why they tell you to do it manually, wherever you find instructions online, like here:
http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule

with manually i mean:
git rm --cached path_to_submodule

so i suggest.. we just rely on doing it manually too, as removing a submodule should not happen too often (as long as we don't start building old revisions on the buildbot).

~0007313

abma (administrator)

yep, there is no clean/easy way to do that...
+Notes

-Issue History
Date Modified Username Field Change
2011-08-30 06:44 abma New Issue
2011-08-30 06:48 abma Description Updated
2011-08-31 08:47 hoijui Note Added: 0007311
2011-08-31 19:45 abma Note Added: 0007313
2011-08-31 19:45 abma Status new => resolved
2011-08-31 19:45 abma Resolution open => not fixable
2011-08-31 19:45 abma Assigned To => abma
+Issue History