Steps to repro:
clone a project
add a submodule through UI
commit changes (you cannot delete the submodule until its committed)
delete submodule through UI.
.gitmodules and submodule directory are deleted. but the .git/modules/submodule directory remain.
This causes an issue if you try to change the url a specific submodule is pointing at, as after a delete and re add, it will still reference the original url.
Steps to repro:
clone a project
add a submodule through UI
commit changes (you cannot delete the submodule until its committed)
delete submodule through UI.
.gitmodules and submodule directory are deleted. but the .git/modules/submodule directory remain.
This causes an issue if you try to change the url a specific submodule is pointing at, as after a delete and re add, it will still reference the original url.