Git svn clone fails with "Unable to get the path out"

I use git in the store, which is all Subversion. When I check repo with

git svn clone -s --preserve-empty-dirs https://<subversion-server>/svn/<repo> <folder-name>

Everything seems fine, as the cloning process begins, but at some point in the git process crashes with

Failed to strip path '<path-to-some-file>' ((?^:^trunk(/|$)))

Does anyone know what is wrong or how to fix it?

+6
source share
1 answer

A search for interwebs showed both an explanation and tips on how to fix this (see step 4).

But the advice may be dated as it did not work for my installation (git 2.7.0). But now, knowing the problem, I was able to find the violation line and apply the proposed fix:

The correction was made by changing the violation line in usr/lib/perl5/vendor_perl/5.22/Git/SVN/Fetcher.pm , line 163:

Change die "Failed to strip path... to print "Failed to strip path... and everything will be fine.

I hope this helps someone else.

+6
source

All Articles