git-svn: fix reconnections to different paths of svn:// repositories
Clearing the pool of the previous SVN::Ra connection we have seems to to fix mysterious connection dropping errors when reconnecting to different paths of svn:// repositories hosted by rubyforge.org. Note: I'm not sure *why* this fixes things things, but it does for me. Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
parent
f30603fcf3
commit
e2c475d91c
@ -2879,6 +2879,7 @@ sub new {
|
|||||||
my ($class, $url) = @_;
|
my ($class, $url) = @_;
|
||||||
$url =~ s!/+$!!;
|
$url =~ s!/+$!!;
|
||||||
return $RA if ($RA && $RA->{url} eq $url);
|
return $RA if ($RA && $RA->{url} eq $url);
|
||||||
|
$RA->{pool}->clear if $RA;
|
||||||
|
|
||||||
SVN::_Core::svn_config_ensure($config_dir, undef);
|
SVN::_Core::svn_config_ensure($config_dir, undef);
|
||||||
my ($baton, $callbacks) = SVN::Core::auth_open_helper([
|
my ($baton, $callbacks) = SVN::Core::auth_open_helper([
|
||||||
|
Loading…
Reference in New Issue
Block a user