{"thread":{"id":"54480","subject":"[Bug] git svn reports an error when a temp file is too large","startedAt":"2020-10-21T18:33:58Z","lastAt":"2020-10-21T18:33:58Z","messageCount":1,"participants":["Flurin Feuerstein"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"408080","messageId":"CADVShLvZ9Nwbix97g6OXGu6XwXxzbxNAa=VcpXqOzqTJoQp2+Q@mail.gmail.com","threadId":"54480","inReplyTo":null,"subject":"[Bug] git svn reports an error when a temp file is too large","fromName":"Flurin Feuerstein","fromEmail":"flufeu@gmail.com","sentAt":"2020-10-21T18:33:41Z","receivedAt":"2020-10-21T18:33:58Z","isPatch":false,"sender":{"key":"flufeu@gmail.com","avatar":null},"body":"git svn reports an error when a temp file is too large\n\nThe issue happens when (for an unknown reason) a temp file is\ngenerated that is too large.\nThe exception is thrown in Git.pm on line 1344 in the function\nFile::Temp::tempfile().\nThe method breaks when a string with more than about 260 characters is inserted.\nThis is a limitation of the Perl File::Temp::tempfile() function\nitself (tested on both linux and windows computers).\n\nI have managed to work around the issue by changing the way the method\nis invoked.\nI have forked the git repository on github and made a quick fix there:\nhttps://github.com/fxredeemer/git\n\nSince I am completely inexperienced in Perl I am not sure whether this\nfix represents clean code.\n\nThere is also another workaround in that repository for a follow up\nissue (not part of this bug report).\n\nUnfortunately I am unable to provide the repository since it is\ncompany internal and not open source.\n\nUsed version: 2.28\nUsed OS: Win 10 2004 (also happening on Ubuntu 18.04)\n\nRegards\nFlurin\n"}]}