git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git update-ref --stdin : too many open files
@ 2014-12-20 10:24 Loic Dachary
  2014-12-22 21:22 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Loic Dachary @ 2014-12-20 10:24 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

Hi,

Steps to reproduce:

$ git --version
git version 1.9.1
$ wc -l /tmp/1
9090 /tmp/1
$ head /tmp/1
delete refs/pull/1/head
create refs/heads/pull/1 86b715f346e52920ca7c9dfe65424eb9946ebd61
delete refs/pull/1/merge
create refs/merges/1 c0633abdc5311354c9729374e0ba25c97a89f69e
...
$ ulimit -n
1024
$ git update-ref --stdin < /tmp/1
fatal: Unable to create '/home/gitmirror/repositories/Ceph/ceph/refs/heads/pull/1917.lock': Too many open files
$ head -20 /tmp/1 | git update-ref --stdin
$ echo $?
0

The workaround is to increase ulimit -n

git update-ref --stdin should probably close some files.

Cheers
-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-12-29 23:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 10:24 git update-ref --stdin : too many open files Loic Dachary
2014-12-22 21:22 ` Junio C Hamano
2014-12-23  2:41   ` Stefan Beller
2014-12-23  3:22     ` Jonathan Nieder
2014-12-23 15:57     ` Junio C Hamano
2014-12-24  2:11   ` Stefan Beller
2014-12-29  1:28     ` Michael Haggerty
2014-12-29 22:56       ` Stefan Beller

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 NNTP newsgroup(s).