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>
Eric Wong committed
Feb 23, 2007 at 01:57 UTC
e2c475d91cc65b110a20c9836142a4a7e608a87c
1 file changed
+1
git-svn.perl
+1
@@ -2879,6 +2879,7 @@ sub new {
2879
my ($class, $url) = @_;
2880
$url =~ s!/+$!!;
2881
return $RA if ($RA && $RA->{url} eq $url);
2882
+ $RA->{pool}->clear if $RA;
2883
2884
SVN::_Core::svn_config_ensure($config_dir, undef);
2885
my ($baton, $callbacks) = SVN::Core::auth_open_helper([