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

git svn relocate [SCRIPT]

From
Christian Stimming <christian@cstimming.de>
Date
Jun 22, 2010, 09:40 UTC
Message-ID
<20100622114043.1419733jtkx6m0co@webmail.tu-harburg.de>
Dear all,

I haven't found an easy solution for when a git-svn SVN server changes its address, but I think the attached patch implements a solution useful for others as well.

In plain svn this is the "svn switch --relocate URL1 URL2" command to change the URL of a working copy from URL1 to URL2. In git-svn, there didn't seem to be a suitable command available. What I found were the instructions here http://translate.org.za/blogs/wynand/en/content/changing-your-svn-repository-address-git-svn-setup and some other google hits related to this one. The instructions from the wynand blog uses git-filter-branch, and the instructions were complete enough so that an all-in-one shell script wasn't too difficult to write. So the attached script implements this: Just call "git-svn-relocate URL1 URL2" and all the rest should happen automatically.

Hope this helps.
Regards,
Christian Stimming
Next: Jakub Narebski
Message 1 of 4 in “git svn relocate [SCRIPT]”
  1. Christian StimmingJun 22, 2010
  2. Jakub NarebskiJun 22, 2010
  3. Ævar Arnfjörð BjarmasonJun 22, 2010
  4. Eric WongJun 23, 2010

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.