提交 7f6f75e9 编写于 作者: E Eric Wong 提交者: Junio C Hamano

git-svn: control destruction order to avoid segfault

It seems necessary to control destruction ordering to avoid a
segfault with SVN 1.9.5 when using "git svn branch".  I've also
reported the problem against libsvn-perl to Debian [Bug #888791],
but releasing the SVN::Client instance can be beneficial anyways to
save memory.

ref: https://bugs.debian.org/888791Tested-by: NTodd Zullinger <tmz@pobox.com>
Reported-by: Nbrian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: NEric Wong <e@80x24.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 8279ed03
......@@ -1199,6 +1199,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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册