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

Ask git to checkout a submodule even if it is skipped in .gitmodules #2086

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

Conversation

wiktor-k
Copy link

Setting a submodule as update = none is a common way to make cargo skip the submodule. Unfortunately this makes actions/checkout skip the submodule too, even if it's configured to fetch submodules.

This patch adds an option that is a default in git but causes the submodules to be available even if skipped otherwise.

See: #915
See: rust-lang/cargo#4247 (comment)
See: https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt---checkout

Setting a submodule as `update = none` is a common way to make cargo
skip the submodule. Unfortunately this makes `actions/checkout` skip
the submodule too, even if it's configured to fetch submodules.

This patch adds an option that is a default in git but causes the
submodules to be available even if skipped otherwise.

See: actions#915
See: rust-lang/cargo#4247 (comment)
See: https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt---checkout
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.

1 participant