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

Re: "svn switch" equivalent when using git-svn -- git-filter-branch?

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 10, 2007, 09:00 UTC
Message-ID
<20070710090003.GA18850@muzzle>
In-Reply-To
<86ejjgzmxl.fsf@lola.quinscape.zz>
David Kastrup <dak@gnu.org> wrote:
Show 21 quoted lines
> Eric Wong <normalperson@yhbt.net> writes:
> 
> > David Kastrup <dak@gnu.org> wrote:
> >> Hi,
> >> 
> >> an upstream svn repository that I access with git-svn has moved.  I
> >> seem to be too stupid to use git-filter-branch and/or .git/config
> >> and/or git-reset to make my git mirror follow the switch.
> >
> > Just changing the url key in the [svn-remote] section of the .git/config
> > file should be enough.
> >
> > You'll probably need to fetch at least one revision from the new URL
> > before being able to dcommit, though.
> 
> git-fetch works, but git-rebase -l still complains:
> 
> git-svn rebase -l
> Unable to determine upstream SVN information from working tree history
> 
> And consequently I can't actually update.
Does manually specifying the remote name work?

Try bypassing the auto-detection of "git-svn rebase" and just using "git rebase <remote name>"

-- 
Eric Wong
Previous: David KastrupNext: David Kastrup
Message 4 of 5 in “"svn switch" equivalent when using git-svn -- git-filter-branch?”
  1. David KastrupJul 9, 2007
  2. Eric WongJul 10, 2007
  3. David KastrupJul 10, 2007
  4. Eric WongJul 10, 2007
  5. David KastrupJul 10, 2007

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.