bozaro / git-lfs-migrate

Simple project for convert old repository for using git-lfs feature
MIT License
222 stars 29 forks source link

There is no way to convert multiple repositories (repository with submodules) #18

Open bozaro opened 8 years ago

bozaro commented 8 years ago

Created by email from Eli Smaga:

Hello,

How do I use your lfs-migrate tool to convert a repo and the repo's submodule so that all of the branch, tag, and submodule links are updated with the new SHA's?

You mention doing that in the following post, but I don't see a way to do that. When I clone with the --> mirror option it doesn't get any of the submodule information so I can't convert the repo and submodule at the same time.

https://github.com/github/git-lfs/issues/326#issuecomment-147932725

Thanks for your help, Eli

bozaro commented 8 years ago

I see two ways for this feature implementation:

  1. mapping file for change remote commit SHA1;
  2. batch configuration for convert multiple repositories in single run.

First one is likely for me.

elismaga commented 8 years ago

Could you explain in a little more detail what you mean in option 1? I'm not really clear what your proposing. Thanks.

mtak- commented 7 years ago

I found myself needing this feature today.

As a user, I'm all for option 1. It would allow me to migrate a submodule, then migrate repos one at a time that use the submodule. Perhaps the mapping file would be useful for other tasks as well?