File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ sub prepare_config_once {
81
81
SVN::_Core::svn_config_ensure($config_dir , undef );
82
82
my ($baton , $callbacks ) = SVN::Core::auth_open_helper(_auth_providers);
83
83
my $config = SVN::Core::config_get_config($config_dir );
84
- my $dont_store_passwords = 1;
85
84
my $conf_t = $config -> {' config' };
86
85
87
86
no warnings ' once' ;
@@ -93,9 +92,14 @@ sub prepare_config_once {
93
92
$SVN::_Core::SVN_CONFIG_SECTION_AUTH ,
94
93
$SVN::_Core::SVN_CONFIG_OPTION_STORE_PASSWORDS ,
95
94
1) == 0) {
95
+ my $val = ' 1' ;
96
+ if (::compare_svn_version(' 1.9.0' ) < 0) { # pre-SVN r1553823
97
+ my $dont_store_passwords = 1;
98
+ $val = bless \$dont_store_passwords , " _p_void" ;
99
+ }
96
100
SVN::_Core::svn_auth_set_parameter($baton ,
97
101
$SVN::_Core::SVN_AUTH_PARAM_DONT_STORE_PASSWORDS ,
98
- bless (\ $dont_store_passwords , " _p_void " ) );
102
+ $val );
99
103
}
100
104
if (SVN::_Core::svn_config_get_bool($conf_t ,
101
105
$SVN::_Core::SVN_CONFIG_SECTION_AUTH ,
You can’t perform that action at this time.
0 commit comments