Git-svn refuses to create branch on svn repository error: "not in the same repository"

Posted by Danny on Stack Overflow See other posts from Stack Overflow or by Danny
Published on 2009-07-21T22:08:57Z Indexed on 2010/05/06 0:58 UTC
Read the original article Hit count: 450

Filed under:
|
|

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://[email protected]/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://[email protected]/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://[email protected]/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?

© Stack Overflow or respective owner

Related posts about git

Related posts about git-svn