D.R.
D.R.

Reputation: 21204

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

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?

Upvotes: 3

Views: 1263

Answers (1)

VonC
VonC

Reputation: 1326366

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.

Upvotes: 1

Related Questions