Skip to content

git clone hangs intermittently on large repos (Windows 2.50.0) #5688

Closed
@StefanCov

Description

@StefanCov

Existing issues matching what you're seeing

  • I was not able to find an open or closed issue matching what I'm seeing

Git for Windows version

### Problem
Since upgrading to Git for Windows 2.50.0, `git clone` hangs randomly during `Receiving objects`, especially on large repositories. The issue does not happen in 2.49.0.windows.1 or earlier.

### Environment
- Git for Windows version: 2.50.0.windows.1
- OS: Windows 11
- Using: CMD, batch scripts, and Groovy
- Repos: Internal GitLab (via SSH)

### Repro Steps
1. Use a batch or scripted tool (e.g., Groovy) to clone many SSH repos
2. Observe: clone stalls at random percentages like 55%, 75%, etc.
3. Clone succeeds manually or with Git 2.49.0.windows.1

### What I've Tried
- Verified network, disk, CPU
- Antivirus excluded `.git` and `.ssh` folders
- Reverting to Git 2.40.1 resolves the issue
- Using `--depth 1` and `--verbose` shows no further clues before freeze

### Possible Regression
This appears to be a regression introduced in 2.50.0.

Windows version

Windows 11

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

Options set during installation

Default Options

Other interesting things

No response

Terminal/shell

CMD

Commands that trigger the issue

git clone

Can be caused by running this on multiple lines on a batch script. It seemed to only get stuck on larger memory projects.

Expected behaviour

Clone all projects.

Actual behaviour

Hands on "Receiving objects" and only ending the process in Task Manager will it stop.

Repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions