Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

internal/datasource: git supports cloning submodules recursively #3351

Merged
merged 1 commit into from
May 17, 2022

Conversation

mitchellh
Copy link
Contributor

The recurse_submodules configuration can be set to a non-zero value to specify the maximum depth of the recursion.

The test verifies this does work, I'm not sure how this works if submodules change across refs significantly from HEAD. That's another test case we should probably do, but looks significantly more involved with go-git so I propose we just get this merged and then iterate on any issues from there.

Fixes #3350

@vercel
Copy link

vercel bot commented May 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
waypoint-ui ✅ Ready (Inspect) Visit Preview May 17, 2022 at 8:31PM (UTC)

@mitchellh
Copy link
Contributor Author

I've added tests and resolved all the issues with checking out a ref with different or no submodules. 😄

The `recurse_submodules` configuration can be set to a non-zero value to
specify the maximum depth of the recursion.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloning recursive git repos w remove runner
2 participants