hakoerber / git-repo-manager

A git tool to manage worktrees and integrate with GitHub and GitLab
https://hakoerber.github.io/git-repo-manager/
GNU General Public License v3.0
62 stars 9 forks source link

allows nested repository discovery #53

Closed pythys closed 1 year ago

pythys commented 1 year ago

A simple fix related to #49 by removing the if/else branch, thus allowing the tool to continue walking the directory tree, find any additional git repositories and register them.

I am working on additional logic to read the contents of .gitmodules if it exists, and then ignore the repositories defined over there since their discovery is the responsibility of git itself, not grm

hakoerber commented 1 year ago

Hey, thank you for your contribution!

I tried it, but unfortunately, recursing unconditionally led to a few problems:

So I think this is fine as a first iteration, but not yet ready to be merged. Let me know when you make progress or if you need support!

pythys commented 1 year ago

I will close this and issue another PR later, substantial code needs to go in to handle .gitignore, .gitmodules and so on and so forth.