git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Bug] git svn reports an error when a temp file is too large
@ 2020-10-21 18:33 Flurin Feuerstein
  0 siblings, 0 replies; only message in thread
From: Flurin Feuerstein @ 2020-10-21 18:33 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-21 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 18:33 [Bug] git svn reports an error when a temp file is too large Flurin Feuerstein

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).