From: Eric Wong Date: Fri, 23 Feb 2007 09:57:40 +0000 (-0800) Subject: git-svn: fix reconnections to different paths of svn:// repositories X-Git-Tag: v1.5.1-rc1~141 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2c475d91cc65b110a20c9836142a4a7e608a87c;p=git.git 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 --- diff --git a/git-svn.perl b/git-svn.perl index a5c6eb9fe..2bd70a157 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2879,6 +2879,7 @@ sub new { my ($class, $url) = @_; $url =~ s!/+$!!; return $RA if ($RA && $RA->{url} eq $url); + $RA->{pool}->clear if $RA; SVN::_Core::svn_config_ensure($config_dir, undef); my ($baton, $callbacks) = SVN::Core::auth_open_helper([