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

Make "yadm clone --recursive" work as expected. #332

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

cwarlich
Copy link

What does this PR do?

The --recursive switch was ignored when YADM clones a dotfile repository.
This commit causes "yadm clone --recursive" to also clone submodules
in one go, similar to what GIT does when given the --recursive switch.

What issues does this PR fix or reference?

Previous Behavior

Before, the --recursive switch was ignored when passed to "yadm clone".

New Behavior

Now, "yadm clone --recursive" also clones all submodules belonging to a
dotfile repository.

Have [tests][1] been written for this change?

No, but all of the current tests still pass.

Have these commits been [signed with GnuPG][2]?

No

The --recursive switch was ignored when YADM clones a dotfile repository.
This commit causes "yadm clone --recursive" to also clone submodules
in one go, similar to what GIT does when given the --recursive switch.
@TheLocehiliosan
Copy link
Owner

TheLocehiliosan commented Apr 25, 2021

I like this idea. I can add some tests for it, and likely add support for paths with --recurse-submodules[=<path>]. And probably support for -j --jobs too.

@cwarlich
Copy link
Author

That's great, thanks. And by the way, I like yadm! I stumbled across it this weekend, and it's just about to give my homeless life as a developer a long-desired shelter :-).

@github-actions github-actions bot added the stale label Dec 28, 2021
@TheLocehiliosan TheLocehiliosan changed the base branch from master to develop December 31, 2021 06:01
@TheLocehiliosan TheLocehiliosan self-assigned this Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants