When using git submodules within a repository connected to a Terraform Cloud workspace and have enabled the workspace setting "Include submodules on clone" it is possible to get this error message
Failed to ingress slug: Failed to clone: failed to clone repo: entry not found
This can be caused by an inconsistency between what is described as the path of the submodule in the .gitmodules file in the repository and what the actual submodule path is.
Open the .gitmodules file and edit the path attribute of the submodule to be exactly the same as the name of the submodule visible in the repository.
[submodule "example"] path = example url = email@example.com/<org_name>/<repo_name>