-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git - Submodules are not processed when cloning a git project. #227150
Comments
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
…one to clone the submodules as well
At the risk of sounding ungrateful, I have to ask..... Is there actually a use-case where anyone would EVER want to non-recursively clone a git repository. If you were to reverse the buttons ( Clone, and Clone Non-Recursively), would anyone EVER click on the second button? I think not. I know it sounds brave, but I think it is actually not. All you're doing is preserving a truly unfortunate git-ism. The right thing to do, I think, is to change the behavior of the existing button and always clone and init recursively. Or perhaps, if you're feeling cowardly ( :-) ) -- careful, that's what I meant, careful -- add a Resursive checkbox that defaults to true. Although I truly think that you don't need the option. Clones should always be recursive. Anything less produces a broken clone that won't build. Apologies for not having tracked the issue more carefully. We don't get notifications on the intermediate actions. |
Type: Bug
When cloning a git project with submodules, all submodules in the project should be cloned and initialized as well.
Actual result:
When cloning a new github project that contains submodules, VsCode does not process any git submodules in the project. After cloning a project with submodules, you then have to issue the following command from a command prompt.
in order to clone and initialize all the project's submodules.
Expected behaviour:
Cloning a project in Github should install and initialize all the project's modules without requiring further actions by the user.
Instead of
VsCode should perform
Repro:
The following github project has submodules.
although most significant github projects also have submodules. Submodules in a github project are not rare at all.
An example of a more lightweight git project with submodules that isn't mine:
VS Code version: Code 1.92.2 (fee1edb, 2024-08-14T17:29:30.058Z)
OS version: Linux arm64 6.6.31+rpt-rpi-v8
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Extensions (8)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: