{"thread":{"id":"22165","subject":"[PATCH 1/4] git-svn: fix the trivial case of 'src and dst not in the same repo' during branch/tag","startedAt":"2010-01-11T16:20:43Z","lastAt":"2010-01-12T04:27:50Z","messageCount":2,"participants":["Igor Mironov","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"131286","messageId":"4B4B4FDB.4000602@gmail.com","threadId":"22165","inReplyTo":null,"subject":"[PATCH 1/4] git-svn: fix the trivial case of 'src and dst not in the same repo' during branch/tag","fromName":"Igor Mironov","fromEmail":"igor.a.mironov@gmail.com","sentAt":"2010-01-11T16:20:43Z","receivedAt":"2010-01-11T16:20:43Z","isPatch":true,"sender":{"key":"igor.a.mironov@gmail.com","avatar":null},"body":"This fixes the following issue:\n$ git svn branch -t --username=svnuser --commit-url=https://myproj.domain.com/svn mytag\nCopying http://myproj.domain.com/svn/trunk at r26 to https://myproj.domain.com/svn/tags/mytag...\nTrying to use an unsupported feature: Source and dest appear not to be in the same repository (src: 'http://myproj.domain.com/svn/trunk'; dst: 'https://myproj.domain.com/svn/tags/mytag') at /usr/lib/git-core/git-svn line 623\nSigned-off-by: Igor Mironov <igor.a.mironov@gmail.com>\n---\n git-svn.perl |    4 ++++\n 1 files changed, 4 insertions(+), 0 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 650c9e5..3f7ccc1 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -710,6 +710,10 @@ sub cmd_branch {\n \tmy ($lft, $rgt) = @{ $glob->{path} }{qw/left right/};\n \tmy $dst = join '/', $remote->{url}, $lft, $branch_name, ($rgt || ());\n \n+\tif ($dst=~\"^https:\" && $src=~\"^http:\") {\n+\t\t$src=~s/^http:/https:/;\n+\t}\n+\n \tmy $ctx = SVN::Client->new(\n \t\tauth    => Git::SVN::Ra::_auth_providers(),\n \t\tlog_msg => sub {\n-- \n1.6.6.106.ge2de8\n"},{"id":"131334","messageId":"20100112042750.GA14884@dcvr.yhbt.net","threadId":"22165","inReplyTo":"4B4B4FDB.4000602@gmail.com","subject":"Re: [PATCH 1/4] git-svn: fix the trivial case of 'src and dst not in the same repo' during branch/tag","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2010-01-12T04:27:50Z","receivedAt":"2010-01-12T04:27:50Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Igor Mironov <igor.a.mironov@gmail.com> wrote:\n> This fixes the following issue:\n> $ git svn branch -t --username=svnuser --commit-url=https://myproj.domain.com/svn mytag\n\nThanks Igor!\n\nI've shorted the subject lines and line-wrapped the commit messages to\nfit in standard terminals, and pushed them out to:\ngit://git.bogomips.org/git-svn\n\nIgor Mironov (4):\n      git-svn: fix mismatched src/dst errors for branch/tag\n      git-svn: respect commiturl option for branch/tag\n      git-svn: add --username/commit-url options for branch/tag\n      git-svn: document --username/commit-url for branch/tag\n\nI'll be working on dcommit error handling in a bit\nbefore asking Junio to pull.\n\n-- \nEric Wong\n"}]}