Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

git-svn

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?

like image 672
D.R. Avatar asked Dec 14 '25 01:12

D.R.


1 Answers

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.

like image 129
VonC Avatar answered Dec 16 '25 08:12

VonC