Skip to contentSkip to conversation

Possible fix for git

PATCH New Peter Hagervall 1 participant 1 message Apr 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Possible fix for git

I noticed earlier today that I ran out of file descriptors when doing a 'git commit'. As far as I can see the following patch ought to take care of the problem.

---

read-cache.c 2005-04-13 12:51:52.000000000 +0200 renamed from read-cache.c +1 -0
@@ -257,6 +257,7 @@
                        return error("SHA1 collision detected!"
                                        " This is bad, bad, BAD!\a\n");
 #endif
+               close(fd);
                return 0;
        }
        write(fd, buf, size);