From: Eric Wong Date: Mon, 4 Dec 2006 08:51:16 +0000 (-0800) Subject: git-svn: avoid network timeouts for long-running fetches X-Git-Tag: v1.5.0-rc0~157 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ebdf7b952215946eff863e4da28f924178acea4f;p=git.git git-svn: avoid network timeouts for long-running fetches Long-running fetches run inside children to avoid memory leaks. When we refork, the connection in the parent can be idle for a long time; attempting to reuse it in the next child can result in timeouts. Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index d0bd0bdeb..747daf018 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -459,6 +459,7 @@ sub fetch_lib { $min = $max + 1; $max += $inc; $max = $head if ($max > $head); + $SVN = libsvn_connect($SVN_URL); } restore_index($index); return { revision => $last_rev, commit => $last_commit };