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

ignore git submodules from checks #142

Open
hansvancalster opened this issue Sep 24, 2024 · 0 comments
Open

ignore git submodules from checks #142

hansvancalster opened this issue Sep 24, 2024 · 0 comments

Comments

@hansvancalster
Copy link
Contributor

I sometimes use git submodule to get the contents of an external repo in the local repo. Currently, checklist::check_project will check the submodule as well, while this is not needed.

When adding a submodule, git will write a file .gitmodules to the git-root of the project which lists all submodules. Here is an example of the contents:

[submodule "NCA_validatingextend"]
	path = NCA_validatingextend
	url = https://github.com/RCinbo/NCA_validatingextend

I think, by default, all paths that are listed in that file should be ignored by checklist::check_project (maybe also checklist::check_package, but I think submodules are not often or never used/needed in that case).

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

1 participant