Re: Funny error with git gc...
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- May 15, 2009, 20:08 UTC
- Message-ID
- <alpine.LFD.2.01.0905151307390.3343@localhost.localdomain>
- In-Reply-To
- <alpine.DEB.1.00.0905152115220.26154@pacific.mpi-cbg.de>
On Fri, 15 May 2009, Johannes Schindelin wrote:
Show 5 quoted lines
>
> fd = mkstemp(template);
> + if (fd < 0) {
> + release_pack_memory((size_t)-1ll, -1);
> + fd = mkstemp(template);This is wrong. You can't use "template" twice. You need to re-initialize it. The first one will blow away the XXXX pattern.
Linus