我正在使用具有非标准布局的Subversion存储库的仅主干结帐。我需要签出远程分支来解决问题。分支在#4711
的名称为branches/issues/#4711
。我正在尝试使用here中描述的解决方案:
[svn-remote "svn"]
url = https://example.com/repos/projectname/trunk/sources
fetch = :refs/remotes/git-svn
[svn-remote "svn-issue-4711"]
url = https://example.com/repos/projectname/branches/issues/#4711
fetch = :refs/remotes/git-svn-issues-#4711
不幸的是,我收到一条错误消息:
W: Filesystem has no item: '/repos/projectname/!svn/rvr/6221/branches/issues' path not found at /usr/share/perl5/Git/SVN.pm line 153.
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/repos/projectname/!svn/rvr/600/branches/issues' path not found
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
解析器似乎在哈希标记处中止,因此我也尝试使用一些转义,例如\#4711
或&234711
或&0434711
,但这些也会产生错误。如何使用git-svn
检出此分支?如何正确转义分支名称?
答案 0 :(得分:0)
我自己找到了答案:
[svn-remote "svn-issue-4711"]
url = "https://example.com/repos/projectname/branches/issues/#4711"
fetch = :refs/remotes/git-svn-issues-4711
如果有人遇到这个问题,我将整件事留给文档。