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

CheckSubmodules: Run git submodule sync #7598

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

Conversation

JohannesLorenz
Copy link
Contributor

This is required in case the URL of a submodule changes. Without this, if you use CheckSubmodules.cmake, submodule URL changes will cause warnings when you update, e.g. "ref ... could not be found on remote".

Note: One possible point of criticism might be that the URL changes without that the user sees it. Some might see this as a security issue, however, the submodule URLs are defined by our team - if you cannot trust our team to put valid URLs into gitmodules, you cannot trust us to write non-malicious code. So I think the fix should be fine.

@tresf Added you since it's your module, and since we discussed it in Discord a while ago.

This is required in case the URL of a submodule changes. Without this,
if you use CheckSubmodules.cmake, submodule URL changes will cause
warnings when you update, e.g. "ref ... could not be found on remote".
@JohannesLorenz JohannesLorenz requested a review from tresf November 23, 2024 22:39
Copy link
Member

@tresf tresf left a comment

Choose a reason for hiding this comment

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

Untested, but LGTM.

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.

2 participants