Skip to content
Browse files

git svn: fix authentication with 'branch'

Authentication fails with svn branch while svn rebase and
svn dcommit work fine without authentication failures.

$ git svn branch v7_3
Copying https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at r27519
to https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/v7_3...
Can't create session: Unable to connect to a repository at URL
'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx': No more
credentials or we tried too many times.
Authentication failed at
C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1200.

We add auth configuration to SVN::Client->new() to fix the issue.

Signed-off-by: Hiroshi Shirosaki <>
Signed-off-by: Eric Wong <>
  • Loading branch information...
shirosaki authored and Eric Wong committed Mar 6, 2017
1 parent 3bc5322 commit e0688e9b28f2c5ff711460ee8b62077be5df2360
Showing with 3 additions and 3 deletions.
  1. +3 −3 git-svn.perl
@@ -1175,10 +1175,10 @@ sub cmd_branch {
require SVN::Client;

my ($config, $baton, undef) = Git::SVN::Ra::prepare_config_once();
my $ctx = SVN::Client->new(
config => SVN::Core::config_get_config(
auth => $baton,
config => $config,
log_msg => sub {
${ $_[0] } = defined $_message
? $_message

0 comments on commit e0688e9

Please sign in to comment.
You can’t perform that action at this time.