Git svn error after changing svn repository address

I cloned the repo using git svn -s clone first from

 svn+ssh://savannah.psi.ch/afs/psi.ch/project/meg/svn/elog 

But the repo was later changed to

 svn+ssh:// svn@savannah.psi.ch /repos/meg/elog 

Then I edit the .git/config file, just change the line below [remote-svn "svn"] . Then git svn fetch works fine, but any other svn commands, such as svn info , svn rebase , cannot fail:

Unable to determine SVN information up tree history

I was looking for a stack overflow, someone got the same error before, but the answer does not work for me. What to do after changing the svn-repo address?

Platform: archlinux; git: 1.7.7.3; svn: 1.6.17

+6
source share
2 answers

I came here through looking for problems with revmap when using this solution, but it gets the job of reinstalling / removing:

http://honk.sigxcpu.org/con/Using_git_svn_when_upstream_moves_the_subversion_repository.html

 git config svn-remote.svn.url newUrl git config svn-remote.svn.rewriteRoot originalUrl git svn rebase 

revmaps don't seem to be used correctly for merges, but are not sure if the tags will work yet ...

+5
source

Try deleting only the .metadata file and run git svn fetch , as if it were correct after the new git svn init

Another idea would be as described in: http://ciaran-lee.com/2008/06/13/how-to-fix-git-svn-if-the-svn-repo-moves.html

0
source

Source: https://habr.com/ru/post/901376/


All Articles