[PATCH] Re: Gitk --all error when there are more than 797 refs in a repository
- From
Paul Mackerras <paulus@samba.org>
- Date
- Sep 19, 2009, 00:07 UTC
- Message-ID
- <19124.8378.975976.347711@cargo.ozlabs.ibm.com>
- In-Reply-To
- <878wgcbb52.fsf@users.sourceforge.net>
Pat Thoyts writes:
Show 7 quoted lines
> Tcl strings can eat all your memory. However, there is a limit to the > size of the command line argument passed to CreateProcess. MSDN says > of the lpCommandLine parameter: > "The maximum length of this string is 32K characters." > A solution for this case will be to use a pipe to read the responses > instead of having it all returned to the caller. > The following patch might be sufficient:
I knew about the 32k command-line limit under windows, but I don't see how that applies in this case unless it is $revs that is too long (and if that is the case then I don't see how your patch helps). Is there also a 32k limit on the size of data returned by a command executed with [exec]?
Paul.