Skip to content

add --recursive support for got clone #69

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

Closed
wants to merge 2 commits into from

Conversation

yanick
Copy link
Collaborator

@yanick yanick commented Apr 27, 2018

Just pass the parameter down to git.

Fixes #68

Just pass the parameter down to `git`.

Fixes genehack#68
@coveralls
Copy link

coveralls commented Apr 27, 2018

Coverage Status

Coverage remained the same at 77.706% when pulling e54d98a on yanick:clone-recursive into 8eea32b on genehack:master.

@@ -61,7 +62,10 @@ sub _execute {
$new_entry->{tags} = $tags if $tags;

say "Cloning into '$path'..." unless $self->quiet;
$new_entry->clone( $repo , $path );
$new_entry->clone(
({ recursive => $self->opt->recursive }) x !!$self->opt->recursive,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line leaves me a bit frowny, it feels excessively clever. I haven't tested it, but I think simply passing { recursive => $self->opt->recursive } should DTRT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was playing it safe and just not passing the argument if there was no need, but sure.

@genehack
Copy link
Owner

I just re-implemented this in a local branch using a slightly different approach. It will be in the next release (probably later today). Thanks for the implementation which I mostly ripped off wholesale.

@genehack genehack closed this Apr 25, 2020
genehack added a commit that referenced this pull request Apr 25, 2020
genehack added a commit that referenced this pull request Apr 25, 2020
  * Add 'readd' command to update repo entries in ~/.gitgot based on
    what is in working trees (genehack)
  * Add .editorconfig (genehack)
  * Add `--recursive` option to `clone` command (genehack,
    reimplementing yanick's code from #69) [#68]
  * switch from File::HomeDir to File::HomeDir::Tiny, for fewer
    dependencies (Karen Etheridge) [#70]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support git clone --recursive
3 participants