Skip to content

Commit

Permalink
git-svn: fix segfaults due to initial SVN pool being cleared
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed May 13, 2007
1 parent 0dc03d6 commit 4c03c3e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 4c03c3e

Please sign in to comment.