问题
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