git svn带有分支文件夹中的标记文件夹
我目前正在将SVN存储库迁移到Git,Git SVN遇到以下问题:git svn带有分支文件夹中的标记文件夹,git,svn,Git,Svn,我目前正在将SVN存储库迁移到Git,Git SVN遇到以下问题: $ git svn fetch fatal: update_ref failed for ref 'refs/remotes/origin/tags': cannot lock ref 'refs/remotes/origin/tags': 'refs/remotes/origin/tags/REL-2.3.1.1' exists; cannot create 'refs/remotes/origin/tags' update-
$ git svn fetch
fatal: update_ref failed for ref 'refs/remotes/origin/tags': cannot lock ref 'refs/remotes/origin/tags': 'refs/remotes/origin/tags/REL-2.3.1.1' exists; cannot create 'refs/remotes/origin/tags'
update-ref -m r3264 refs/remotes/origin/tags 981b12f8d739180b54d280f61a197ba3ae792ad9: command returned error: 128
配置:使用标准布局(-s
)
问题是,SVN修订版3264添加了一个名为branchs\tags
的文件夹,这非常不幸。有没有办法说:
“标准布局(主干、分支、标记),但branchs\tags
下的所有“分支”也是标记”
编辑:当前配置:
[svn-remote "svn"]
url = https://server/svn/projects/myproject
fetch = trunk:refs/remotes/origin/trunk
branches = branches/*:refs/remotes/origin/*
tags = tags/*:refs/remotes/origin/tags/*
添加:
tags = tags/*:refs/remotes/origin/branches/tags/*
不起作用
标准布局(主干、分支、标记),但所有“分支”都在
分支\标记也是标记“
您不能这样说,必须在转换之前将标签移到分支空间之外(从我的POV中转储比普通的
svn mv
更安全)刚刚意识到-s
将分支
文件夹设置为参考/远程/源/*
。如果我手动将其更改为refs/remotes/origin/branchs/*
,我不会遇到名称冲突(分支/标记与标记),并且从一开始重新运行git svn fetch
后,问题就消失了。为了节省将来的时间,可以在.git/config中找到这一点