Skip to content

Commit e0688e9

Browse files
shirosakiEric Wong
authored andcommitted
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 <[email protected]> Signed-off-by: Eric Wong <[email protected]>
1 parent 3bc5322 commit e0688e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-svn.perl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,10 +1175,10 @@ sub cmd_branch {
11751175
::_req_svn();
11761176
require SVN::Client;
11771177

1178+
my ($config, $baton, undef) = Git::SVN::Ra::prepare_config_once();
11781179
my $ctx = SVN::Client->new(
1179-
config => SVN::Core::config_get_config(
1180-
$Git::SVN::Ra::config_dir
1181-
),
1180+
auth => $baton,
1181+
config => $config,
11821182
log_msg => sub {
11831183
${ $_[0] } = defined $_message
11841184
? $_message

0 commit comments

Comments
 (0)