git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-svn breaks lots with rewriteRoot

From
JGJohn Goerzen <jgoerzen@complete.org>
Date
Mar 8, 2008, 13:35 UTC
Message-ID
<slrnft55gq.1so.jgoerzen@katherina.lan.complete.org>

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?

Next: John Goerzen
Message 1 of 2 in “git-svn breaks lots with rewriteRoot”
  1. John GoerzenMar 8, 2008
  2. John GoerzenMar 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.