git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: .gitconfig folder
@ 2015-05-27 13:29 Jorge
  2015-05-27 20:30 ` Junio C Hamano
  0 siblings, 1 reply; 20+ messages in thread
From: Jorge @ 2015-05-27 13:29 UTC (permalink / raw)
  To: git

If you have a folder named ~/.gitconfig instead of a file with that 
name, when you try to run some global config editing command it will 
fail with a wrong error message:

     "fatal: Out of memory? mmap failed: No such device"


You can reproduce it:

$rm ~/.gitconfig
$mkdir ~/.gitconfig

$ls -la ~
     ...
     drwxr-xr-x 24 hit  hit       4096 may  4 12:30 .gimp-2.8
     drwxr-xr-x  2 hit  hit       4096 may 27 15:26 .gitconfig
     drwxr-xr-x  6 hit  hit       4096 may 27 14:01 github
     ...

$git config --global user.name foo
     fatal: Out of memory? mmap failed: No such device

$git config --global core.editor "vim"
     fatal: Out of memory? mmap failed: No such device

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

end of thread, other threads:[~2015-06-30 16:01 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 13:29 Bug: .gitconfig folder Jorge
2015-05-27 20:30 ` Junio C Hamano
2015-05-27 22:18   ` Jeff King
2015-05-27 22:24     ` Stefan Beller
2015-05-28  6:13       ` Jeff King
2015-05-27 22:38     ` Junio C Hamano
2015-05-28  7:51       ` Jeff King
2015-05-28  7:54         ` [PATCH 1/4] read-cache.c: drop PROT_WRITE from mmap of index Jeff King
2015-05-28  7:54         ` [PATCH 2/4] config.c: fix mmap leak when writing config Jeff King
2015-06-30 14:34           ` [PATCH] config.c: fix writing config files on Windows network shares Karsten Blees
2015-06-30 14:46             ` Torsten Bögershausen
2015-06-30 16:01               ` Jeff King
2015-06-30 14:52             ` Johannes Schindelin
2015-06-30 16:00             ` Jeff King
2015-05-28  7:56         ` [PATCH 3/4] config.c: avoid xmmap error messages Jeff King
2015-05-28  8:03         ` [PATCH 4/4] config.c: rewrite ENODEV into EISDIR when mmap fails Jeff King
2015-05-28 17:11           ` Junio C Hamano
2015-05-28 20:44             ` Jeff King
2015-05-28 21:11               ` Junio C Hamano
2015-05-28 17:06         ` Bug: .gitconfig folder Junio C Hamano

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).