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

Garden grow doesn't do a full git clone #2

Closed
mrosm20 opened this issue May 6, 2022 · 2 comments
Closed

Garden grow doesn't do a full git clone #2

mrosm20 opened this issue May 6, 2022 · 2 comments

Comments

@mrosm20
Copy link

mrosm20 commented May 6, 2022

the remotes branch aren't fetched when you perform a garden grow. you can't checkout a branch from the origin.

@davvid
Copy link
Member

davvid commented May 6, 2022

Good point, right now we have --depth=1 hard-coded in src/cmds/grow.rs.

That should be made opt-in via a new depth: 1 attribute instead.

In the meantime removing the hard-coded --depth=1 there is a good solution.

davvid added a commit that referenced this issue May 6, 2022
Related-to: #2
Signed-off-by: David Aguilar <[email protected]>
@davvid davvid closed this as completed in 0093f81 May 6, 2022
@davvid
Copy link
Member

davvid commented May 6, 2022

Thanks for the report. We now create full clones by default.

You can add depth: 1 to a tree (or template) configuration to enable shallow cloning. It's an integer, so depth: 42 will create a shallow clone of depth 42.

davvid added a commit that referenced this issue Jun 24, 2022
Improve the support for shallow clones from #2 by cloning all branches
by default.  We can opt-out of having all branches by setting
single-branch: true.

This starts settings things up to support for branches and later
worktrees.

Related-to: #1
Related-to: #2
Signed-off-by: David Aguilar <[email protected]>
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

No branches or pull requests

2 participants