File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -5444,7 +5444,7 @@ BEGIN
5444
5444
}
5445
5445
5446
5446
sub _auth_providers () {
5447
- [
5447
+ my @rv = (
5448
5448
SVN::Client::get_simple_provider(),
5449
5449
SVN::Client::get_ssl_server_trust_file_provider(),
5450
5450
SVN::Client::get_simple_prompt_provider(
@@ -5460,7 +5460,23 @@ ()
5460
5460
\&Git::SVN::Prompt::ssl_server_trust),
5461
5461
SVN::Client::get_username_prompt_provider(
5462
5462
\&Git::SVN::Prompt::username, 2)
5463
- ]
5463
+ );
5464
+
5465
+ # earlier 1.6.x versions would segfault, and <= 1.5.x didn't have
5466
+ # this function
5467
+ if ($SVN::Core::VERSION gt ' 1.6.12' ) {
5468
+ my $config = SVN::Core::config_get_config($config_dir );
5469
+ my ($p , @a );
5470
+ # config_get_config returns all config files from
5471
+ # ~/.subversion, auth_get_platform_specific_client_providers
5472
+ # just wants the config "file".
5473
+ @a = ($config -> {' config' }, undef );
5474
+ $p = SVN::Core::auth_get_platform_specific_client_providers(@a );
5475
+ # Insert the return value from
5476
+ # auth_get_platform_specific_providers
5477
+ unshift @rv , @$p ;
5478
+ }
5479
+ \@rv ;
5464
5480
}
5465
5481
5466
5482
sub escape_uri_only {
You can’t perform that action at this time.
0 commit comments