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

List submodules as projects #113

Open
simonhaenisch opened this issue Apr 19, 2021 · 2 comments
Open

List submodules as projects #113

simonhaenisch opened this issue Apr 19, 2021 · 2 comments
Milestone

Comments

@simonhaenisch
Copy link

simonhaenisch commented Apr 19, 2021

At my new workplace there's a mono-repo that's just a bunch of git submodules, so it's easier to clone all the relevant repos all at once (git submodule foreach "git checkout master && git pull origin master").

When using the "GPM: Open Git Project" action, it only lists the top level git project but doesn't allow me to jump directly into the submodules. I've tried enabling searchInsideProjects and deleting .gitmodules but that didn't help.

Workaround for now will be that I'll delete the top level repo now that I've cloned all the repos, but would be useful if GPM would have a toggle so that submodules are also listed as projects (it appears to filter them out at the moment).

Edit: whoops turned out deleting the parent git repo wasn't a good idea because I wasn't aware that the submodules don't have their own .git folders (just a reference to the parent) 🙈 now I've had to re-clone the needed repos again.

@felipecaputo
Copy link
Owner

Hi @simonhaenisch, I was looking at this recently.

I've making some tests, and I believe it might be possible to add config to allow listing submodules, and maybe just changing the icon.

I look deeper into it this weekend and let you know

@felipecaputo felipecaputo added this to the 1.9.0 milestone Nov 26, 2021
@simonhaenisch
Copy link
Author

Ok thanks, however I ended up not cloning our mono-repo at all anymore, also for other reasons. Still might be useful though, I guess.

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

2 participants