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

handling nested repositories #48

Closed
pythys opened this issue Dec 18, 2022 · 1 comment
Closed

handling nested repositories #48

pythys opened this issue Dec 18, 2022 · 1 comment

Comments

@pythys
Copy link

pythys commented Dec 18, 2022

So I have some projects that simply hold git repositories inside other git repositories (usually in .gitignore folders). And I want to keep that directory structure. Is this possible without introducing submodules?

@pythys
Copy link
Author

pythys commented Dec 18, 2022

OK answering myself, things are a little more clear to me now

grm repos find local this command will not find nested repos however you can do it manually and it will work. Now the problem is order sequence, but I suppose this is easily solved by making the root repos clone before the sub-repos. Example below

- root: ~/projects
  repos:
  - name: mainproject
    worktree_setup: false
    remotes:
    - name: origin
      url: https://github.com/whatever/whatever.git
      type: https
  - name: mainproject/subproject
    worktree_setup: false
    remotes:
    - name: origin
      url: https://github.com/whatever/whateverelse.git
      type: https

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