Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cl/t9001-cleanup' into maint
[gitweb.git]
/
git-svn.perl
diff --git
a/git-svn.perl
b/git-svn.perl
index 76a75d0b3dfe36f0c82c3951f8b7b04849f808e1..a6b6c3e40c180e58186f9ef8af5c6fd6fc654080 100755
(executable)
--- a/
git-svn.perl
+++ b/
git-svn.perl
@@
-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;
}