On 4/3/06, Kees-Jan Dijkzeul wrote: > I'm trying to get Git to manage a 5Gb source tree. Under linux, this > works like a charm. Under cygwin, however, I run in to difficulties. > For example: > > $ git-clone sgp-wa/ sgp-wa.clone > fatal: packfile > ./objects/pack/pack-56aa013a0234e198467ed37ae5db925764a6ee98.pack > cannot be mapped. > fatal: unexpected EOF > fetch-pack from '/cygdrive/e/Projects/sgp-wa/.git' failed. > > To figure out what is happening, I printed the value of errno, which > turns out to be 12 (Cannot allocate memory). I'm not sure how mmap is mmap in git on cygwin does not mmaps anything, but just reads the whole file in memory. > I'm not sure how to approach this problem. Any tips would be greatly > appreciated. I ended up hacking gitfakemmap like in the attached patches (sorry for mime). It's very ugly and unsafe hack, and it's actually exactly the reason why it was never submitted. Still, it helps me (it speedups revlist, for instance), and maybe it'll help you. It is a really good example what stupid windows restrictions can do to a program. The patch is against git as of 3-Apr-2005, ~10 CET