git - clean before build does not clean submodules

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When using a repository containing submodules, if the project is set to clean after the checkout, the git clean -fdx command is issued. However, the clean command will not iterate through submodules, resulting in the submodules still containing private content (debris from past builds.) Would it be possible to get the clean code changed to iterate through the submodules and perform a git clean -fdx within each as well?

            Assignee:
            Mark Waite
            Reporter:
            aaron_neerenberg
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: