{"thread":{"id":"45298","subject":"[PATCH v2] git svn: fix authenticaton with 'branch'","startedAt":"2017-03-06T06:09:44Z","lastAt":"2017-03-07T22:59:34Z","messageCount":3,"participants":["Hiroshi Shirosaki","Eric Wong","Junio C Hamano"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"313309","messageId":"1488779947-25264-1-git-send-email-h.shirosaki@gmail.com","threadId":"45298","inReplyTo":null,"subject":"[PATCH v2] git svn: fix authenticaton with 'branch'","fromName":"Hiroshi Shirosaki","fromEmail":"h.shirosaki@gmail.com","sentAt":"2017-03-06T05:59:07Z","receivedAt":"2017-03-06T06:09:44Z","isPatch":true,"sender":{"key":"h.shirosaki@gmail.com","avatar":null},"body":"Authentication fails with svn branch while svn rebase and\nsvn dcommit work fine without authentication failures.\n\n$ git svn branch v7_3\nCopying https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at r27519\nto https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/v7_3...\nCan't create session: Unable to connect to a repository at URL\n'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx': No more\ncredentials or we tried too many times.\nAuthentication failed at\nC:\\Program Files\\Git\\mingw64/libexec/git-core\\git-svn line 1200.\n\nWe add auth configuration to SVN::Client->new() to fix the issue.\n\nSigned-off-by: Hiroshi Shirosaki <h.shirosaki@gmail.com>\n---\n git-svn.perl | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex fa42364..d240418 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -1175,10 +1175,10 @@ sub cmd_branch {\n \t::_req_svn();\n \trequire SVN::Client;\n \n+\tmy ($config, $baton, undef) = Git::SVN::Ra::prepare_config_once();\n \tmy $ctx = SVN::Client->new(\n-\t\tconfig => SVN::Core::config_get_config(\n-\t\t\t$Git::SVN::Ra::config_dir\n-\t\t),\n+\t\tauth => $baton,\n+\t\tconfig => $config,\n \t\tlog_msg => sub {\n \t\t\t${ $_[0] } = defined $_message\n \t\t\t\t? $_message\n-- \n2.7.4\n\n"},{"id":"313454","messageId":"20170307213217.GA20443@starla","threadId":"45298","inReplyTo":"1488779947-25264-1-git-send-email-h.shirosaki@gmail.com","subject":"[PULL] git svn branch authentication fix","fromName":"Eric Wong","fromEmail":"e@80x24.org","sentAt":"2017-03-07T21:32:17Z","receivedAt":"2017-03-07T21:48:59Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Thank you.  I fixed spelling in the title (s/authenticaton/authentication/),\nadded my S-o-b, and pushed for Junio to pick up\n\nThe following changes since commit 3bc53220cb2dcf709f7a027a3f526befd021d858:\n\n  First batch after 2.12 (2017-02-27 14:04:24 -0800)\n\nare available in the git repository at:\n\n  git://bogomips.org/git-svn.git svn-auth-branch\n\nfor you to fetch changes up to e0688e9b28f2c5ff711460ee8b62077be5df2360:\n\n  git svn: fix authentication with 'branch' (2017-03-07 21:29:03 +0000)\n\n----------------------------------------------------------------\nHiroshi Shirosaki (1):\n      git svn: fix authentication with 'branch'\n\n git-svn.perl | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n"},{"id":"313459","messageId":"xmqqbmtc673p.fsf@gitster.mtv.corp.google.com","threadId":"45298","inReplyTo":"20170307213217.GA20443@starla","subject":"Re: [PULL] git svn branch authentication fix","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-03-07T22:43:22Z","receivedAt":"2017-03-07T22:59:34Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Eric Wong <e@80x24.org> writes:\n\n> Thank you.  I fixed spelling in the title (s/authenticaton/authentication/),\n> added my S-o-b, and pushed for Junio to pick up\n>\n> The following changes since commit 3bc53220cb2dcf709f7a027a3f526befd021d858:\n>\n>   First batch after 2.12 (2017-02-27 14:04:24 -0800)\n>\n> are available in the git repository at:\n>\n>   git://bogomips.org/git-svn.git svn-auth-branch\n>\n> for you to fetch changes up to e0688e9b28f2c5ff711460ee8b62077be5df2360:\n>\n>   git svn: fix authentication with 'branch' (2017-03-07 21:29:03 +0000)\n>\n> ----------------------------------------------------------------\n> Hiroshi Shirosaki (1):\n>       git svn: fix authentication with 'branch'\n>\n>  git-svn.perl | 6 +++---\n>  1 file changed, 3 insertions(+), 3 deletions(-)\n\nThanks, both.  Will pull.\n"}]}