Equivalent of `svn switch` for git-svn?
Hi all-
I've recently been informed that the Subversion server I and several
others have been tracking with git-svn will be switching from using the svn+ssh scheme to the http scheme. To handle this, users of svn will be running svn switch to move their working copies to the new repository URL. Is there some way to do the same for git-svn? I suspect the biggest complication will come from the git-svn-id: lines in the commit logs, since changing that line would require changing the commit hash as well.
Thanks for any advice!
-Adam
Quoted 8 lines · Adam Roben
Hi all-
I've recently been informed that the Subversion server I and several
others have been tracking with git-svn will be switching from using the svn+ssh scheme to the http scheme. To handle this, users of svn will be runningsvn switchto move their working copies to the new repository URL. Is there some way to do the same for git-svn? I suspect the biggest complication will come from the git-svn-id: lines in the commit logs, since changing that line would require changing the commit hash as well.
edit your .git/config, in the section [svn-remote "svn"], change url =
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org
Hi,
Quoted 11 lines · Pierre Habouzit
Quoted 8 lines · Adam Roben
Hi all-
I've recently been informed that the Subversion server I and several
others have been tracking with git-svn will be switching from using the svn+ssh scheme to the http scheme. To handle this, users of svn will be runningsvn switchto move their working copies to the new repository URL. Is there some way to do the same for git-svn? I suspect the biggest complication will come from the git-svn-id: lines in the commit logs, since changing that line would require changing the commit hash as well.edit your .git/config, in the section [svn-remote "svn"], change url =
Or use git-config:
git config svn-remote.svn.url <url>
Or make it a global alias:
git config --global alias svn-switch 'config svn-remote.svn.url'
so that you can say
git svn-switch <url>
Ciao,
Dscho
Quoted 18 lines · Johannes Schindelin
Hi,
Quoted 8 lines · Pierre Habouzit
Quoted 4 lines · Adam Roben
Hi all-
I've recently been informed that the Subversion server I and several
others have been tracking with git-svn will be switching from using the svn+ssh scheme to the http scheme. To handle this, users of svn will be runningsvn switchto move their working copies to the new repository URL. Is there some way to do the same for git-svn? I suspect the biggest complication will come from the git-svn-id: lines in the commit logs, since changing that line would require changing the commit hash as well.edit your .git/config, in the section [svn-remote "svn"], change url =
Or use git-config:
git config svn-remote.svn.url <url>
Quoted 8 lines
Or make it a global alias:
git config --global alias svn-switch 'config svn-remote.svn.url'so that you can say
git svn-switch <url>
Will doing this then change all the git-svn-id: lines in the commit logs for those imported revisions? I'm asking because my understanding is that git-svn uses those git-svn-id: lines to determine which branch you're on, and if the URLs are now all out of date won't it then think it can't determine the correct branch?
Thanks for the suggestions so far.
-Adam
Quoted 5 lines · Adam Roben
Will doing this then change all the git-svn-id: lines in the commit logs for those imported revisions? I'm asking because my understanding is that git-svn uses those git-svn-id: lines to determine which branch you're on, and if the URLs are now all out of date won't it then think it can't determine the correct branch?
fwiw If it breaks git-svn, then it's a deep git-svn misconception.
I've always believed that git-svn should always have done what git checkout --track do, meaning set into the configuration which svn remote branch you are following.
Signature · 3 lines
·O· Pierre Habouzit ··O [email protected] OOO http://www.madism.org