threads / discuss / 12574

git-svn breaks lots with rewriteRoot

Subject: git-svn breaks lots with rewriteRoot

## tl;dr

2 messages between Mar 8, 2008 and Mar 8, 2008.

replies: 1people: 1as markdown or json

John Goerzen· Mar 8, 2008, 13:35 UTC · lore

I've trying to work with a remote repo. I initially git-svn fetched it using svn://. Now I have been given svn commit access, which uses svn+ssh:// on their server. I edited my .git/config and set url to the svn+ssh address and rewriteRoot to the svn:// address I wasusing before. This appears to work fine for doing more read operations, such as svn fetch.

I am having a problem, though, with svn dcommit and svn rebase. I believe both are related to this rewriteRoot. When I run either of these, I see:

Unable to determine upstream SVN information from working tree history

Looking at the working_head_info and find_by_url subs in git-svn, it appears that neither is considering rewriting. One of them needs to be, I believe, rewriting the URL from git-svn-id back to the "true" URL over on the server. This causes it to never match any of the remote sections in .git/config.

I'm not good enough with Perl anymore, and certainly not goot enough with this program, to whip up a patch. Can anyone help with this?

John Goerzen· Mar 8, 2008, 20:09 UTC · re: John Goerzen · lore

Re: git-svn breaks lots with rewriteRoot

On 2008-03-08, John Goerzen <jgoerzen@complete.org> wrote:
> believe both are related to this rewriteRoot.  When I run either of
> these, I see:
>
> Unable to determine upstream SVN information from working tree history

For future reference, I found the problem and have sent in a patch to fix it here:

http://article.gmane.org/gmane.comp.version-control.git/76576

← back to recent threads