我想通过git-svn关注SVN-Repo,它对它的根节点有限制。 正是这样: * SVN标准布局(主干,分支机构,标签) *上述目录的匿名读访问权限 *根目录没有读取权限
使用“git svn clone -s ...”的经典方法在这里不起作用,因为它需要在根节点上进行读访问。
有没有可能绕过这个? 解决方案的目标是在公共git存储库中跟踪主干,分支和标记。
答案 0 :(得分:1)
我应该阅读完整的git-svn手册......;)
git svn init有这个附加选项:
--no-minimize-url When tracking multiple directories (using --stdlayout, --branches, or --tags options), git svn will attempt to connect to the root (or highest allowed level) of the Subversion repository. This default allows better tracking of history if entire projects are moved within a repository, but may cause issues on repositories where read access restrictions are in place. Passing --no-minimize-url will allow git svn to accept URLs as-is without attempting to connect to a higher level directory. This option is off by default when only one URL/branch is tracked (it would do little good).
那就行了。