svn-remote.svn: remote ref 'xx' *:refsremotessvntags*' (tags) 必须以 'refs' 开头。

问题描述 投票:0回答:1

每次我使用这个命令,

git svn clone xxxx/xxx --prefix=svn/ --branches=branches --tags=refs/tags --stdlayout xxx

我都会收到这个错误。

svn-remote.svn: remote ref 'xx' *:refs/remotes/svn/tags/*' (tags) must start with 'refs/'.

我怎么才能解决这个问题?

git svn branch refs
1个回答
0
投票

我知道这是一个老帖子,但我遇到了这个问题。 这是我的工作方法:在你的第一步中发出克隆命令后,编辑配置文件,编辑fetch行去掉远程ref'xx *:refsremotessvn。

    vi xxx/.git/config
    [svn-remote "svn"]
       url = svn://localhost/xxx/trunk
       fetch = :refs/remotes/git-svn

编辑fetch行,删除违规的 "程序文件/Git/Program Files/Git/Program Files/Git",然后运行。

    git svn fetch
© www.soinside.com 2019 - 2024. All rights reserved.