Skip to content

Commit

Permalink
Merge git://git.bogomips.org/git-svn
Browse files Browse the repository at this point in the history
By Matthijs Kooijman
via Eric Wong
* git://git.bogomips.org/git-svn:
  git-svn: use platform specific auth providers
  • Loading branch information
Junio C Hamano committed Apr 30, 2012
2 parents 62bc833 + 082afee commit 4b2a0f8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -5444,7 +5444,7 @@ BEGIN
}

sub _auth_providers () {
[
my @rv = (
SVN::Client::get_simple_provider(),
SVN::Client::get_ssl_server_trust_file_provider(),
SVN::Client::get_simple_prompt_provider(
Expand All @@ -5460,7 +5460,23 @@ ()
\&Git::SVN::Prompt::ssl_server_trust),
SVN::Client::get_username_prompt_provider(
\&Git::SVN::Prompt::username, 2)
]
);

# earlier 1.6.x versions would segfault, and <= 1.5.x didn't have
# this function
if ($SVN::Core::VERSION gt '1.6.12') {
my $config = SVN::Core::config_get_config($config_dir);
my ($p, @a);
# config_get_config returns all config files from
# ~/.subversion, auth_get_platform_specific_client_providers
# just wants the config "file".
@a = ($config->{'config'}, undef);
$p = SVN::Core::auth_get_platform_specific_client_providers(@a);
# Insert the return value from
# auth_get_platform_specific_providers
unshift @rv, @$p;
}
\@rv;
}

sub escape_uri_only {
Expand Down

0 comments on commit 4b2a0f8

Please sign in to comment.