Thread (8 messages) flat view 8 messages, 3 authors, 2016-06-15

Re: svn repository URL and git

From: Ulrich Spörlein <hidden>
Date: 2016-06-15 22:49:55

On Thu, 28.10.2010 at 16:58:28 +0000, H Krishnan wrote:
Hi,
I think I resolved this problem by using --rewrite-root as suggested. I used a 
dummy root during the git-svn clone:

git-svn clone --rewrite-root http://git.is.great <myrepo>

All my commit messages now have http://git.is.great but I am able to change the 
repository URL and continue.

Could this approach be used as an insurance against svn url changes? When 
initializing the repository, we could use --rewrite-root. Subsequently, if the 
svn repository relocates, we need to edit only .git/config. 
Yes, that's exactly what the rewrite-url was introduced for, you can
even clone from a local svnsync mirror (iff the UUID matches, you have
to setup the mirror in a special way ...).

So, every developer must use:

$ git svn clone --rewrite-root CANONICAL-URL-NEVER-TO-CHANGE <whatever-url-is-convenient>

Oh, and all devs must use the same authormap (or no authormap at all).

hth,
Uli
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help