]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-svn.perl
Sync with 2.15.3
[thirdparty/git.git] / git-svn.perl
index 76a75d0b3dfe36f0c82c3951f8b7b04849f808e1..a6b6c3e40c180e58186f9ef8af5c6fd6fc654080 100755 (executable)
@@ -1200,6 +1200,11 @@ sub cmd_branch {
        $ctx->copy($src, $rev, $dst)
                unless $_dry_run;
 
+       # Release resources held by ctx before creating another SVN::Ra
+       # so destruction is orderly.  This seems necessary with SVN 1.9.5
+       # to avoid segfaults.
+       $ctx = undef;
+
        $gs->fetch_all;
 }