Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git svn error after change the svn repo address

Tags:

git

git-svn

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

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

But the repo laterly has been changed to

svn+ssh://[email protected]/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, fail in the error:

Unable to determine upstream SVN information from working tree history

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

Platform: archlinux; git: 1.7.7.3; svn: 1.6.17

like image 943
Vivodo Avatar asked Nov 13 '11 11:11

Vivodo


1 Answers

I came here via looking for revmap issues when using this solution but it gets the rebasing / fetching working:

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, not sure if tags will work either yet...

like image 158
Chris Avatar answered Sep 28 '22 01:09

Chris