Skip to content

Commit 34b9ec8

Browse files
committed
Merge branch 'ew/svn-branch-segfault-fix' into maint
Workaround for segfault with more recent versions of SVN. * ew/svn-branch-segfault-fix: git-svn: control destruction order to avoid segfault
2 parents 091853a + 7f6f75e commit 34b9ec8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-svn.perl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,11 @@ sub cmd_branch {
12001200
$ctx->copy($src, $rev, $dst)
12011201
unless $_dry_run;
12021202

1203+
# Release resources held by ctx before creating another SVN::Ra
1204+
# so destruction is orderly. This seems necessary with SVN 1.9.5
1205+
# to avoid segfaults.
1206+
$ctx = undef;
1207+
12031208
$gs->fetch_all;
12041209
}
12051210

0 commit comments

Comments
 (0)