An svn repository I'm mirroring through git-svn has changed URL.
In vanilla svn you'd just do
svn switch --relocate old_url_base new_url_base
This handles my situation pretty well:
I cloned using the
file:// protocol, and wanted to switch to the
It is tempting to edit the
url setting in the
[svn-remote "svn"] section of
.git/config, but on its own this does not work. In general you need to follow the following procedure:
urlsetting to the new name.
git svn fetch. This needs to fetch at least one new revision from svn!
urlsetting back to the original URL.
git svn rebase -lto do a local rebase (with the changes that came in with the last fetch operation).
urlsetting back to the new URL.
git svn rebaseshould work again.
Adventurous souls may want to try