pub fn is_submodule_git_dir(git_dir: &Path) -> bool
Returns true if git_dir is located within a .git/modules directory, indicating it’s a submodule clone.
git_dir
.git/modules