If a git submodule is converted to a regular git directory (e.g. when moving from dev -> rel-6 branch), the directory is not properly cleaned by the checkout action. Remove the git submodule .git files which makes sure that git properly reinitialize subdirectories, even if they have been a submodule before. See also: https://github.com/actions/checkout/issues/624