I am attempting to create a svn branch using git-svn. The repository was created with --stdlayout. Unfortunately it generates an error stating the “Source and dest appear not to be in the same repository”. The error appears to be the result of it not including the username in the source url.
$ git svn branch foo-as-bar -m “Attempt to make Foo into Bar.”
Copying svn+ssh://my.foo.company/r/sandbox/foo/trunk at r1173 to
svn+ssh://svnuser@my.foo.company/r/sandbox/foo/branches/foo-as-bar…Trying to use an unsupported feature: Source and dest appear not to
be in the same repository (src:
‘svn+ssh://my.foo.company/r/sandbox/foo/trunk’;
dst:
‘svn+ssh://svnuser@my.foo.company/r/sandbox/foo/branches/foo-as-bar’)
at /home/me/.install/git/libexec/git-core/git-svn line 610
I intially thought this was simply a configuration issue, examination of .git/config doesn’t suggest anything incorrect.
[svn-remote "svn"]
url = svn+ssh://svnuser@my.foo.company/r
fetch = sandbox/foo/trunk:refs/remotes/trunk
branches = sandbox/foo/branches/*:refs/remotes/*
tags = sandbox/foo/tags/*:refs/remotes/tags/*
I am using git version 1.6.3.3.
Can anyone shed any light on why this might be occuring, and how best to address it?
An actual fix for this is in this patch, obtained from the mailing list thread:
Note that for the same revision that Danny’s using, 1.6.3.3, I found this specific line at 588. In Ubuntu Karmic 9.10, this script is
/usr/lib/git-core/git-svn.