Marcelo Idemax
Marcelo Idemax

Reputation: 2810

Migrating SVN (to Git) branches with white space in the names

I'm facing a common problem migrating SVN to Git, basically I have some branches (on SVN) named with white spaces. Is there a way to solve or workaround it?

I've found some "solutions" but none of them worked for me.

I have a rude and massive repository to migrate and the command already migrated more then 90% of them (it took more then a week).

Someone has a clue how to solve it?

Git error: command returned error: 128

System Info:

Win 7 64x

git version 1.9.5.msysgit.0

Thanks!

Upvotes: 3

Views: 3871

Answers (2)

gvtek0
gvtek0

Reputation: 1

For anyone reading this now, and using say an Ubuntu box, which might affect behavior, using the svn2git tool, use both double quotes around the full URL and %20 in place of the spaces. This has worked for me now on a rather large conversion.

Upvotes: -1

Marcelo Idemax
Marcelo Idemax

Reputation: 2810

Open the file git-repo-name/.git/packed-refs and replace the %20 for spaces.

Git version: git version 2.6.2.windows.1 (win 7 64x via git bash).

Upvotes: 5

Related Questions