Revert "Cleanup stale submodule directories in checkout action (#161748)"

This reverts commit f3c5a82139.

Reverted https://github.com/pytorch/pytorch/pull/161748 on behalf of https://github.com/malfet due to I put the check in the wrong place ([comment](https://github.com/pytorch/pytorch/pull/161748#issuecomment-3237080419))
This commit is contained in:
PyTorch MergeBot 2025-08-29 13:40:20 +00:00
parent f0a65cd6d6
commit 823a329984

View File

@ -43,8 +43,6 @@ runs:
sudo git clean -ffdx
else
git clean -ffdx
# Do the same for submodules, should cleanup stale submodule dirs
git submodule foreach --recursive git clean -ffdx
fi
fi