Git-svn clone error: “fatal: Not a valid object name 'refs/remotes/tags/Tag With Spaces'”

蓝咒 提交于 2021-02-18 17:15:10

问题


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

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.

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?


回答1:


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

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



来源:https://stackoverflow.com/questions/24403142/git-svn-clone-error-fatal-not-a-valid-object-name-refs-remotes-tags-tag-with

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!