threads / bug / 54480

[Bug] git svn reports an error when a temp file is too large

Subject: [Bug] git svn reports an error when a temp file is too large

## tl;dr

One message between Oct 21, 2020 and Oct 21, 2020.

replies: 0people: 1as markdown or json

Flurin Feuerstein· Oct 21, 2020, 18:33 UTC · lore
git svn reports an error when a temp file is too large

The issue happens when (for an unknown reason) a temp file is generated that is too large. The exception is thrown in Git.pm on line 1344 in the function File::Temp::tempfile(). The method breaks when a string with more than about 260 characters is inserted. This is a limitation of the Perl File::Temp::tempfile() function itself (tested on both linux and windows computers).

I have managed to work around the issue by changing the way the method is invoked. I have forked the git repository on github and made a quick fix there: https://github.com/fxredeemer/git

Since I am completely inexperienced in Perl I am not sure whether this fix represents clean code.

There is also another workaround in that repository for a follow up issue (not part of this bug report).

Unfortunately I am unable to provide the repository since it is company internal and not open source.

Used version: 2.28 Used OS: Win 10 2004 (also happening on Ubuntu 18.04)

Regards Flurin

← back to recent threads