{"thread":{"id":"23354","subject":"git-svn clone fails","startedAt":"2010-04-06T09:28:37Z","lastAt":"2010-04-07T09:31:31Z","messageCount":2,"participants":["Janne Kulmala","Paul Bolle"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138732","messageId":"4BBAFEC5.6030103@tut.fi","threadId":"23354","inReplyTo":null,"subject":"git-svn clone fails","fromName":"Janne Kulmala","fromEmail":"janne.t.kulmala@tut.fi","sentAt":"2010-04-06T09:28:37Z","receivedAt":"2010-04-06T09:28:37Z","isPatch":false,"sender":{"key":"janne.t.kulmala@tut.fi","avatar":null},"body":"I'm trying to clone OpenTTD subversion repository using git-svn from \nDebian Lenny testing. Git version is 1.7.0. The clone operationg always \nfails at the same revision with same error message.\n\nI am using the following command:\n\n\tgit svn clone svn://svn.openttd.org/trunk openttd\n\nWhich gives this error message:\n\nr1170 = 12fbf791d6e353346315756bf46cbbf75a325833 (refs/remotes/git-svn)\nUse of uninitialized value in concatenation (.) or string at \n/usr/lib/perl5/SVN/Core.pm line 584.\n\nNetwork connection closed unexpectedly:  at /usr/lib/git-core/git-svn \nline 5047\n\n\nIs this a Debian-specific problem, or a bug in git-svn?\n\n\nJanne Kulmala\n"},{"id":"138818","messageId":"1270632691.5703.21.camel@localhost.localdomain","threadId":"23354","inReplyTo":"4BBAFEC5.6030103@tut.fi","subject":"Re: git-svn clone fails","fromName":"Paul Bolle","fromEmail":"pebolle@tiscali.nl","sentAt":"2010-04-07T09:31:31Z","receivedAt":"2010-04-07T09:31:31Z","isPatch":false,"sender":{"key":"pebolle@tiscali.nl","avatar":null},"body":"On Tue, 2010-04-06 at 12:28 +0300, Janne Kulmala wrote:\n> I'm trying to clone OpenTTD subversion repository using git-svn from \n> Debian Lenny testing. Git version is 1.7.0. The clone operationg always \n> fails at the same revision with same error message.\n> \n> I am using the following command:\n> \n> \tgit svn clone svn://svn.openttd.org/trunk openttd\n> \n> Which gives this error message:\n> \n> r1170 = 12fbf791d6e353346315756bf46cbbf75a325833 (refs/remotes/git-svn)\n> Use of uninitialized value in concatenation (.) or string at \n> /usr/lib/perl5/SVN/Core.pm line 584.\n\nI don't do perl but this looks like a bug in subversion's perl bindings.\nThis seems to fix it (where fix basically means something like \"make\nsure this warning/error isn't printed again):\n\n--- /usr/lib/perl5/SVN/Core.pm.oud\t2008-08-13 18:32:32.000000000 +0200\n+++ /usr/lib/perl5/SVN/Core.pm\t2010-04-07 10:30:19.000000000 +0200\n@@ -581,7 +581,9 @@\n \n \t\tmy $error_message = $svn_error->strerror();\n \t\twhile ($svn_error) {\n-\t\t    $error_message .= ': ' . $svn_error->message();\n+                    if ($svn_error->message()) {\n+\t\t        $error_message .= ': ' . $svn_error->message();\n+                    }\n \t\t\t\t$svn_error = $svn_error->child();\n \t\t}\n \t\treturn $error_message;\n\n> Network connection closed unexpectedly:  at /usr/lib/git-core/git-svn \n> line 5047\n>\n> Is this a Debian-specific problem, or a bug in git-svn?\n\nNo, the exact same problem can be triggered in fedora rawhide too (with\ngit-svn-1.7.0.1-1.fc14.noarch). It seems openttd's svn server terminates\nthe connection after fetching (roughly) 1000 commits. (I'm not sure what\nhappens. I don't know how to debug perl.)\n\nA workaround might be to enter the openttd directory you just created\nand do \"git svn fetch\" a number of times. (I stopped after it terminated\nfor the third time, around commit 2600. There are over 19.500 commits in\nthat trunk, so that might take a while. Whether you'll end up with a\nworking and correct clone I can't say.)\n\nCould it be openttd's svn server doesn't really appreciate the way\ngit-svn uses it (a straightforward svn checkout finished much quicker\nand in one session)?\n\nRegards,\n\n\nPaul Bolle\n"}]}