Skip to content

Add Git: Clone Recursively option#109133

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
baylesj:clone-recursively-108381
Oct 22, 2020
Merged

Add Git: Clone Recursively option#109133
joaomoreno merged 1 commit intomicrosoft:masterfrom
baylesj:clone-recursively-108381

Conversation

@baylesj
Copy link
Contributor

@baylesj baylesj commented Oct 22, 2020

This PR fixes #108381 by adding a new command, Git: Clone Recursively, that adds the
--recursive option to git clone in order to also check out git
submodules.

To test, open the command menu (Ctrl or Cmd + P) and type in "> Git: Clone Recursively".

When it asks for the repository URL, you can use the GitHub project I created to test this feature:

https://github.com/baylesj/submodule-example.git

The command should behave the same as "Git: Clone" but it will also check out the submodules. I tested both locally and they behaved as expected.

NOTE: I was unable to find any unit testing for the Command menu, so this was only verified manually.

#108381

This patch adds a new command, Git: Clone Recursively, that adds the
--recursive option to git clone in order to also check out git
submodules.

Bug: 108381
@ghost
Copy link

ghost commented Oct 22, 2020

CLA assistant check
All CLA requirements met.

@baylesj
Copy link
Contributor Author

baylesj commented Oct 22, 2020

@joaomoreno is this what you had in mind? Wanted to grab a simple patch to get my feet wet, I'm a long time user of VSCode and would love to contribute some fixes!!

@joaomoreno
Copy link
Member

Thanks! 🍻

@joaomoreno joaomoreno merged commit 990c028 into microsoft:master Oct 22, 2020
@joaomoreno joaomoreno added this to the October 2020 milestone Oct 22, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git: Support recursive git clone

2 participants