我有以下 SVN 存储库结构。这不是设计使然,在我参与之前有人做了一些奇怪的事情。
https://server/svn/repo
https://server/svn/repo/rootfolder1
https://server/svn/repo/rootfolder2
https://server/svn/repo/trunk
https://server/svn/repo/trunk/trunkfolder1
https://server/svn/repo/trunk/trunkfolder2
我正在尝试将这两个文件夹导入 Git 存储库(rootfolder1然后rootfolder2我将使用 git-filter-branch 将它们拆分到单独的存储库)。
运行subgit import --svn-url https://server/svn/repo repo-root时,我留下了一个带有trunkfolder1和的 Git 存储库trunkfolder2。传递--trunk repo给了我一个空的 Git 存储库。运行为subgit import --svn-url --trunk repo https://server/svn repo-root给我以下错误:
IMPORT FAILED
error: svn: E175002: PROPFIND of '/': 405 Method Not Allowed (https://server)
我也尝试过subgit --import --trunk . --svn-url https://server/svn/repo repo-root,但是 subgit 抱怨该--trunk参数。
关于解决这个问题的任何建议?