summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-02-23 09:57:40 (GMT)
committerEric Wong <normalperson@yhbt.net>2007-02-23 09:59:34 (GMT)
commite2c475d91cc65b110a20c9836142a4a7e608a87c (patch)
treeb425d93abb2d08a0f26922c2f3efd550d42316ab /git-svn.perl
parentf30603fcf37f44942a2173386c0f580a508158df (diff)
downloadgit-e2c475d91cc65b110a20c9836142a4a7e608a87c.zip
git-e2c475d91cc65b110a20c9836142a4a7e608a87c.tar.gz
git-e2c475d91cc65b110a20c9836142a4a7e608a87c.tar.bz2
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl
index a5c6eb9..2bd70a1 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([