]> Pileus Git - ~andy/git/commitdiff
git-svn: fix segfaults due to initial SVN pool being cleared
authorEric Wong <normalperson@yhbt.net>
Sun, 13 May 2007 08:04:44 +0000 (01:04 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 May 2007 19:10:42 +0000 (12:10 -0700)
Some parts of SVN always seem to use it, even if the SVN::Ra
object we're using is no longer used and we've created a new one
in its place.  It's also true that only one SVN::Ra connection
can exist at once...  Using SVN::Pool->new_default when the
SVN::Ra object is created doesn't seem to help very much,
either...

Hopefully this fixes all segfault problems users have been
experiencing over the past few months.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index 721a46817b13f828735572646f39729531a60d60..ae14bab3a9bc6c02774e67a4c7f502730ce673d5 100755 (executable)
@@ -2904,7 +2904,6 @@ 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([