Skip to content

Add support for nested git submodules#18

Open
phodge wants to merge 2 commits intodbakker:masterfrom
phodge:nested_git_submodules
Open

Add support for nested git submodules#18
phodge wants to merge 2 commits intodbakker:masterfrom
phodge:nested_git_submodules

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