Migrate from svn to git keeping svn-externals

…衆ロ難τιáo~ 提交于 2019-12-06 07:47:43

Alternatively, I propose: Use a modified version of this simple old python script, that works: https://github.com/eneroth/git-externals This script would check out all svn:externals previously defined in subdirectory in a .gitexternals file Problem is the checked out version is the HEAD, and are not part of the git repository

I would use a separate file, to use to store all svn versions. This file would be stored in git. So each time we do an update, This file would be updated with the latest commited. An option in the script would allow to update this file to the latest version of externals. The script would be modified to download the version stored in such file. Branches and tags would have the version fixed for externals as well in this case. For the historical data of the migration, not sure if this approach would work.

I would use this script in the case of submodules as well, it’s quite flexible. But in that case we will have all externals mirrored in git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!