【发布时间】:2018-11-17 10:48:59
【问题描述】:
我想迁移到 svn 的 repo git 有问题。 在这个 repo 中,创建了一些名称为空格的分支。当我启动命令 git svn clone 我有一个错误
fatal: Not a valid object name refs/remotes/origin/My branch
cat-file commit refs/remotes/origin/My branch: command returned error: 128
我使用 svndumpfilter exclude 转储我的 repo,但问题是一样的。 我试图克隆使用忽略路径选项,但相同!
git svn clone --trunk=/Projet/trunk --branches=/Projet/branches --tags=/Projet/tags --authors-file=authors.txt file:///home/repo_svn/nom ../temp --ignore-path=".*(?:refs/remotes/origin/My branch|refs/remotes/origin/My%20branch)"
你有解决办法吗? 最好的问候
【问题讨论】:
-
另外,这个帖子可能会有所帮助:git svn clone: branches/tags with whitespaces not supported?
-
你好 Enrico,昨天我试图修改文件 packed-ref 但之后,我有另一个错误(一直不正常)