Merge branch 'ew/svn-branch-segfault-fix'
Workaround for segfault with more recent versions of SVN. * ew/svn-branch-segfault-fix: git-svn: control destruction order to avoid segfaultmaint
commit
9cd5320d3c
|
@ -1200,6 +1200,11 @@ sub cmd_branch {
|
||||||
$ctx->copy($src, $rev, $dst)
|
$ctx->copy($src, $rev, $dst)
|
||||||
unless $_dry_run;
|
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;
|
$gs->fetch_all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue