Git-SVN克隆错误:“致命:无效的对象名称'refs/remotes/tags/Tag With Spaces'" [英] Git-svn clone error: "fatal: Not a valid object name 'refs/remotes/tags/Tag With Spaces'"

查看:60
本文介绍了Git-SVN克隆错误:“致命:无效的对象名称'refs/remotes/tags/Tag With Spaces'"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 git svn clone (git版本1.9.4.msysgit.0)将Subversion存储库迁移到Git.

I'm using git svn clone (git version 1.9.4.msysgit.0) to migrate a Subversion repository to Git.

Subversion存储库中的标签带有空格,这将导致致命:不是有效的对象名称refs/remotes/tags/带有空格的标签错误.

The Subversion repository has tags with spaces in it, which leads to fatal: Not a valid object name refs/remotes/tags/Tag With Spaces errors.

根据各种Internet来源,自Git 1.8.0起应该解决此问题,为什么我仍然会遇到这种情况?我还尝试了 git-svn克隆的标记答案失败致命的:无效的对象名称" 也不起作用,它只是将错误更改为:致命的:引用格式无效:"refs/remotes/tags/Tag With Spaces" .

According to various internet sources, this problem should have been fixed since Git 1.8.0, why am I still experiencing this? I also tried the marked answer from git-svn clone fails "fatal: Not a valid object name" which does not work either, it just changes the error to: fatal: Reference has invalid format: 'refs/remotes/tags/Tag With Spaces'.

有人知道如何解决问题吗?

Anybody know how to solve the problem?

推荐答案

最新版本 of svn2git (如此处详细所示)已为OP工作.

The most recent version of svn2git (as detailed here) has worked for the OP.

一次性导入的另一种方法是使用 SubGit ,它也可以容纳各种标记名称,包括空格.

The other option, for a one-time import, is to use SubGit, which can also accommodate various tag names, including with spaces.

这篇关于Git-SVN克隆错误:“致命:无效的对象名称'refs/remotes/tags/Tag With Spaces'"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆