Skip to content
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

Add Git: Clone Recursively option #109133

Merged
merged 1 commit into from Oct 22, 2020

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
@microsoft-cla-retired
Copy link

microsoft-cla-retired bot 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