Closed mspang closed 4 years ago
This seems to be a regression of desired functionality: post-patch, if I run make -f Makefile-bootstrap clean-repos
, the repos present in repos.conf are still in the working tree.
What if we check if there's a submodule ptr at that path, and only leave the empty directory in that case?
Git will put an empty directory at a submodule and if it's missing, the tree is considered dirty. It doesn't really do any harm.
With pull.method == clone, nlbuild-autotools doesn't require a git repo in the parent project. So don't run git commands there.
This fixes an incompatibility between the clone method and submodules where cleaning will leave staged deletions in the index.