Re: [PATCH] git-svn: Add a svn-remote.<name>.pushurl config key
- From
Alejandro R. Sedeño <asedeno@mit.edu>
- Date
- Apr 5, 2011, 20:25 UTC
- Message-ID
- <4D9B7A9E.6040902@mit.edu>
- In-Reply-To
- <1302034509-8842-1-git-send-email-asedeno@mit.edu>
On 04/05/2011 04:15 PM, Alejandro R. Sedeño wrote:
Show 13 quoted lines
> @@ -730,7 +736,11 @@ sub cmd_branch {
> $url = eval { command_oneline('config', '--get',
> "svn-remote.$gs->{repo_id}.commiturl") };
> if (!$url) {
> - $url = $remote->{url};
> + $url = eval { command_oneline('config', '--get',
> + "svn-remote.$gs->{repo_id}.pushurl") };
> + if (!$url) {
> + $url = $remote->{url};
> + }
> }
> }
> my $dst = join '/', $url, $lft, $branch_name, ($rgt || ());Actually, I was just finishing running this through its paces with different values for url and pushurl, and branching has issues:
Trying to use an unsupported feature: Source and dest appear not to be in the same repository (src: 'http://asedeno/svn/trunk'; dst: 'file:///tmp/svn/repo/branches/nb1') at /tmp/git/libexec/git-core/git-svn line 770
So I'm continuing to look into that. Perhaps it makes sense to use pushurl for both src and dst when branching?
-Alejandro