Merge branch 'uh/git-svn-serf-fix'
authorJunio C Hamano <gitster@pobox.com>
Wed, 18 Sep 2013 18:46:06 +0000 (11:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Sep 2013 18:46:06 +0000 (11:46 -0700)
"git-svn" used with SVN 1.8.0 when talking over https:// connection
dumped core due to a bug in the serf library that SVN uses. Work
it around on our side, even though the SVN side is being fixed.

* uh/git-svn-serf-fix:
git-svn: fix termination issues for remote svn connections

perl/Git/SVN/Ra.pm
index 75ecc425b6ebbf2cb1941b6b6bca78f8d0b70d62..a7b0119ee5945e062aee27a8bb21bf7c818fb8c6 100644 (file)
@@ -32,6 +32,14 @@ BEGIN
        }
 }
 
+# serf has a bug that leads to a coredump upon termination if the
+# remote access object is left around (not fixed yet in serf 1.3.1).
+# Explicitly free it to work around the issue.
+END {
+       $RA = undef;
+       $ra_invalid = 1;
+}
+
 sub _auth_providers () {
        my @rv = (
          SVN::Client::get_simple_provider(),