Skip to content

Add support for nested git submodules #18

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phodge
Copy link

@phodge phodge commented Sep 15, 2019

If you are nesting git repos inside other git repos using git's submodule
feature, then you might actually want the parent repo to be the project root
not just for itself but also for nested repos.

This PR adds an option g:projectroot_nested_git_submodule which will cause projectroot to read the contents of '.git' marker files and check if they are indicate a git submodule inside another git repo. If this is the case, then projectroot will continue searching up the directory tree for
another '.git' marker file.

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