64bit os, 20GB RAM of which about 8GB is in use, Can clone smaller AND bigger repos Repo is not public I'm afraid.
Using git under cygwin works.
doing a git trace and setting debug on ssh (clone is using ssh protocol) I've seen a couple of things. The error happens during the receiving objects stage, which if I understand means that the path length, file names and file size etc should have no bearing it is just doing an index-pack of the stream of git-upload-pack over ssh.
14:10:39.542564 run-command.c:369 trace: run_command: 'ssh' '-p' '29418' 'BLAH' 'git-upload-pack '\''/BLAH'\'''
14:10:44.671564 run-command.c:369 trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 16192 on HOST' '--check-self-contained-and-connected'
14:10:44.747564 git.c:369 trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 16192 on HOST' '--check-self-contained-and-connected'
The debug on ssh and a packet tract shows that actually the stream coming from the remote repo actually continues after index-pack errors.
Looking into the zlib source, error code 1 is "Stream end". This would kind of suggest that something in the stream coming from the remote repo makes index-pack think the stream has ended.
Does that sound reasonable ?
In which case why does this happen with git-for-windows but not cygwin ? :)