How to checkout recursively? #25429
-
Creating Codespaces automatically checkouts repository, but not for |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
There is an extension setting in VS Code that will clone submodules. |
Beta Was this translation helpful? Give feedback.
-
Thank you for answering! By the way, I turned on I have a problem with this repository: note-sarisia-cc/source
|
Beta Was this translation helpful? Give feedback.
-
Hi @sarisia, @acangialosi, That setting in VS Code is only supported in Visual Studio Codespaces and is not currently implemented for GitHub Codespaces. There is not currently a way to request submodule checkout in GitHub Codespaces, although it’s on our backlog! For now, you could try working around it by specifying a |
Beta Was this translation helpful? Give feedback.
-
Thank you for providing details! As a workaround, I added:
to |
Beta Was this translation helpful? Give feedback.
-
For private repos you can do the following: If you follow the instructions here for adding permissions for repos: https://docs.github.com/en/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces be sure to add Then you can add the following to your devcontainer.json to checkout submodules and rewrite git paths:
|
Beta Was this translation helpful? Give feedback.
Hi @sarisia, @acangialosi,
That setting in VS Code is only supported in Visual Studio Codespaces and is not currently implemented for GitHub Codespaces.
There is not currently a way to request submodule checkout in GitHub Codespaces, although it’s on our backlog! For now, you could try working around it by specifying a
postCreateCommand
in devcontainer.json to clone the submodules. Note that this will also only work today if those submodule repos are public, as the GitHub token that the Codespace gets is restricted just to the main Codespace repo.