使用 reposurgeon 将 subversion 存储库转换为 Git 时,如何跳过前两次提交?
第一次 svn 提交使用错误的分支布局 ( trunk
, tags
, branches
) 导入代码,第二次提交将其全部删除。
第三次提交是对正确分支布局 ( subdir/trunk
, subdir/tags
, subdir/branches
) 的导入。
这个错误的开始似乎让 reposurgeon 感到困惑,因为生成的 Git 存储库只有一个提交:最初的错误开始。以后的所有提交都将被忽略。
这是我尝试过的:
# installed reposurgeon 3.29
mkdir foo
cd foo
repotool initialize foo svn git
# edited the Makefile and set REMOTE_URL
make stubmap
# edited the resulting authors map (foo.map)
echo "1..2 delete" >>foo.lift
make