mkdocs-multirepo-plugin icon indicating copy to clipboard operation
mkdocs-multirepo-plugin copied to clipboard

Cloning full git repos

Open toinbis opened this issue 1 year ago • 2 comments

Thanks for the plugin!

I wond if multirepo could clone full repos into the temp_dir.

I would like temp_dir/my_child_repo1/ and temp_dir/my_child_repo2/ to appear. Now it only copies the files I declare in imports. I would love to have full source code including .git/, so I could edit/commit/push my_child_repo1 and my_child_repo2 from single VSCode window.

Is such use case supported?

Thanks!

toinbis avatar Aug 06 '23 12:08 toinbis

Turned out it's that simple - https://github.com/jdoiro3/mkdocs-multirepo-plugin/commit/7db351e589cf245dbbaa0829c42f744abfb20fd6 . Not deleting .git is enough to make my use case work.

If introduced as config flag, this could be a nice feature. Woult such PR would be accepted?

toinbis avatar Aug 06 '23 17:08 toinbis

@toinbis, that's a good idea and definitely would accept a pull request for that feature. Feel free to reach out if you're confused by any part of the source code you'll need to change. I think it's just the bash script and the plugins module.

jdoiro3 avatar Aug 07 '23 10:08 jdoiro3