# Git for Windows Failing to Clone

2 messages from 2026-06-02 to 2026-06-03. Participants: Dylan Carlyle, Johannes Schindelin.
Thread: https://gitlist.dev/t/65737

## Dylan Carlyle, 2026-06-02 11:31

Subject: Git for Windows Failing to Clone
Message-ID: <CAJKusd6WJUUVhbyN_-XHkGWVYeNe_=K2U3tZoezPWFG3+OG_zw@mail.gmail.com>

```
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue):

Ran git clone user@ip_addres:repo

What did you expect to happen? (Expected behavior):

The repo to be cloned

What happened instead? (Actual behavior):

remote: Enumerating objects: 57873, done.
remote: Counting objects: 100% (57873/57873), done.
remote: Compressing objects: 100% (32002/32002), done.
fatal: pack has bad object at offset 460179591: inflate returned 1
fatal: fetch-pack: invalid index-pack output

What's different between what you expected and what actually happened?

The clone never finishes on Windows.

Anything else you want to add:

Git version on the remote server is 2.47.3
This works fine from Linux but fails on Windows.

[System Info]
git version:
git version 2.54.0.windows.1
cpu: x86_64
built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
rust: disabled
feature: fsmonitor--daemon

-- 
Kind Regards,

Dylan Carlyle
REFTEK Systems, Inc.
Systems Administrator

```

## Johannes Schindelin, 2026-06-03 12:42

Subject: Re: Git for Windows Failing to Clone
Message-ID: <b1239f9a-4a36-4645-a3a0-3f9bc32ba30a@gmx.de>
In-Reply-To: <CAJKusd6WJUUVhbyN_-XHkGWVYeNe_=K2U3tZoezPWFG3+OG_zw@mail.gmail.com>

```
Hi Dylan,

On Wed, 3 Jun 2026, Dylan Carlyle wrote:

> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
> 
> What did you do before the bug happened? (Steps to reproduce your issue):
> 
> Ran git clone user@ip_addres:repo
> 
> What did you expect to happen? (Expected behavior):
> 
> The repo to be cloned
> 
> What happened instead? (Actual behavior):
> 
> remote: Enumerating objects: 57873, done.
> remote: Counting objects: 100% (57873/57873), done.
> remote: Compressing objects: 100% (32002/32002), done.
> fatal: pack has bad object at offset 460179591: inflate returned 1
> fatal: fetch-pack: invalid index-pack output
> 
> What's different between what you expected and what actually happened?
> 
> The clone never finishes on Windows.
> 
> Anything else you want to add:
> 
> Git version on the remote server is 2.47.3
> This works fine from Linux but fails on Windows.

I guess that this is virtually identical to
https://github.com/git-for-windows/git/issues/6265

Since it works from Linux, but not from Windows, I strongly suspect the
problem to be related to that vexing 2GB/4GB problem induced by Git's
continued use of `unsigned long` instead of `size_t`, which I am slowly
(_very_ slowly) trying to address.

You can find out whether that effort might help you, by running `git repo
structure` on the original repository (I'd expect a blob whose unpacked
size is larger than 4GB).

Ciao,
Johannes

> 
> [System Info]
> git version:
> git version 2.54.0.windows.1
> cpu: x86_64
> built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c
> sizeof-long: 4
> sizeof-size_t: 8
> shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
> rust: disabled
> feature: fsmonitor--daemon
> 
> -- 
> Kind Regards,
> 
> Dylan Carlyle
> REFTEK Systems, Inc.
> Systems Administrator
> 
> 

```
