large repository clone failure in git for windows
- From
- Ginger Luo 罗江 <jiang.luo@vastaitech.com>
- Date
- Jan 15, 2025, 08:07 UTC
- Message-ID
- <NTZPR01MB11138218E5A5F2EB6AD848518419A@NTZPR01MB1113.CHNPR01.prod.partner.outlook.cn>
Hello, GIT gurus
I have a large repository which is more than 30GB, when I clone it with git-for-windows (tried 2.47.1 and some old versions), it prompted me with "fatal: pack has bad object at offset xxxxx: inflate returned 1", usually died at "receiving objects" stage at about 4GiB. Looks like it's same issue in https://github.com/git-for-windows/git/pull/2179 ; Seems like it's a "long" versus "size_t" problem and should be fixed long ago, but why it's still there? I was using 64bit git and 64bit windows server;
Thanks!! G