{"thread":{"id":"15563","subject":"git-svn checksum mismatch importing large file","startedAt":"2008-09-17T07:53:34Z","lastAt":"2008-09-17T17:39:35Z","messageCount":5,"participants":["Pascal Obry","Björn Steinbrink","Avery Pennarun"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"90901","messageId":"48D0B77E.7010308@obry.net","threadId":"15563","inReplyTo":null,"subject":"git-svn checksum mismatch importing large file","fromName":"Pascal Obry","fromEmail":"pascal@obry.net","sentAt":"2008-09-17T07:53:34Z","receivedAt":"2008-09-17T07:53:34Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"I get this error:\n\nChecksum mismatch: trunk/data\nexpected: 7c59e4dd67b5a9fde6c61cada070537b\n    got: 3fcd9d077a5aa51a784a452c9d78d6e0\n\nTo reproduce launch run.sh in attached archive.\n\nI have had this problem since some time now and I finally got some time\nto create a reproducer. I have reproduced this problem with yesterday\nmaster Git version.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|              http://www.obry.net\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595\n"},{"id":"90904","messageId":"20080917082506.GA8849@atjola.homenet","threadId":"15563","inReplyTo":"48D0B77E.7010308@obry.net","subject":"Re: git-svn checksum mismatch importing large file","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-09-17T08:25:06Z","receivedAt":"2008-09-17T08:25:06Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.09.17 09:53:34 +0200, Pascal Obry wrote:\n> I get this error:\n> \n> Checksum mismatch: trunk/data\n> expected: 7c59e4dd67b5a9fde6c61cada070537b\n>     got: 3fcd9d077a5aa51a784a452c9d78d6e0\n> \n> To reproduce launch run.sh in attached archive.\n> \n> I have had this problem since some time now and I finally got some time\n> to create a reproducer. I have reproduced this problem with yesterday\n> master Git version.\n\nYour /tmp is probably to small to hold the temporary file that git-svn\ncreates. At least it doesn't fail for me unless I fill my /tmp first.\n\nThis should be fixed since 29c70e0b3e3183f86f93500882177d0c74069988, at\nleast it got me a useful error message when I tested it back then.\nAvery, any ideas?\n\nBjörn\n"},{"id":"90910","messageId":"48D0D03B.4040108@obry.net","threadId":"15563","inReplyTo":"20080917082506.GA8849@atjola.homenet","subject":"Re: git-svn checksum mismatch importing large file","fromName":"Pascal Obry","fromEmail":"pascal@obry.net","sentAt":"2008-09-17T09:39:07Z","receivedAt":"2008-09-17T09:39:07Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"\nBjörn,\n\n> Your /tmp is probably to small to hold the temporary file that git-svn\n> creates. At least it doesn't fail for me unless I fill my /tmp first.\n\nHum probably, I did not thought about this given the error message!\n\n> This should be fixed since 29c70e0b3e3183f86f93500882177d0c74069988, at\n> least it got me a useful error message when I tested it back then.\n> Avery, any ideas?\n\nI'm using Git on master. This commit is there, the error message is not\nthat useful on my side :)\n\nAnyway, what's the best option? Is there a way to specify another tmp\ndirectory to use with git-svn?\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|              http://www.obry.net\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595\n"},{"id":"90911","messageId":"20080917100759.GA11718@atjola.homenet","threadId":"15563","inReplyTo":"48D0D03B.4040108@obry.net","subject":"Re: git-svn checksum mismatch importing large file","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-09-17T10:07:59Z","receivedAt":"2008-09-17T10:07:59Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.09.17 11:39:07 +0200, Pascal Obry wrote:\n> > Your /tmp is probably to small to hold the temporary file that git-svn\n> > creates. At least it doesn't fail for me unless I fill my /tmp first.\n> \n> Hum probably, I did not thought about this given the error message!\n\nYeah, I only came up with the idea because of the previous breakage,\notherwise I'd not have guessed that either :-)\n\n> > This should be fixed since 29c70e0b3e3183f86f93500882177d0c74069988, at\n> > least it got me a useful error message when I tested it back then.\n> > Avery, any ideas?\n> \n> I'm using Git on master. This commit is there, the error message is not\n> that useful on my side :)\n\nYeah, I tested with yesterday's master as well, thus I was asking Avery\nif he has any clue of what's going on. Should probably have mentioned\nthat...\n\n> Anyway, what's the best option? Is there a way to specify another tmp\n> directory to use with git-svn?\n\nLooks like the code honors the TMPDIR environment variable, but I didn't\nactually try that.\n\nBjörn\n"},{"id":"90961","messageId":"32541b130809171039q22d3776aw45e6ec347c315248@mail.gmail.com","threadId":"15563","inReplyTo":"20080917082506.GA8849@atjola.homenet","subject":"Re: git-svn checksum mismatch importing large file","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-09-17T17:39:35Z","receivedAt":"2008-09-17T17:39:35Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Wed, Sep 17, 2008 at 4:25 AM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:\n> On 2008.09.17 09:53:34 +0200, Pascal Obry wrote:\n>> I get this error:\n>>\n>> Checksum mismatch: trunk/data\n>> expected: 7c59e4dd67b5a9fde6c61cada070537b\n>>     got: 3fcd9d077a5aa51a784a452c9d78d6e0\n>>\n>> To reproduce launch run.sh in attached archive.\n>>\n>> I have had this problem since some time now and I finally got some time\n>> to create a reproducer. I have reproduced this problem with yesterday\n>> master Git version.\n>\n> Your /tmp is probably to small to hold the temporary file that git-svn\n> creates. At least it doesn't fail for me unless I fill my /tmp first.\n>\n> This should be fixed since 29c70e0b3e3183f86f93500882177d0c74069988, at\n> least it got me a useful error message when I tested it back then.\n> Avery, any ideas?\n\nIt is possible that before my patch, you wouldn't have gotten that\nerror message - instead you would have gotten a corrupt repository,\nwhich might have been caught later with an even more obscure-sounding\nerror.  It does appear that there's a write() call somewhere in\ngit-svn that still isn't protected by an \"or die\", however, because\nwe're getting an invalid checksum without getting a write error first.\n\nIn any case, if the problem is a giant file that won't fit in /tmp,\nthe best we could do in git-svn is produce a better error message.\n/tmp is still the \"right\" place to put temp files.  I agree with the\nsuggestion to try pointing the TMPDIR environment variable somewhere\nelse... or else make your /tmp bigger.\n\nHave fun,\n\nAvery\n"}]}