Windows docker runner early EOF for big repositories

Summary

Git early EOF error for big repository pipelines in windows-docker runner.

Steps to reproduce

  1. Take a repository with huge amount of data. For example my repository has more than 22.000 commit and more than 550MB.
  2. Create a gitlab pipeline for that repository which uses windows-docker runner
  3. Start few pipelines

Actual behavior

Fetching changes...
Initialized empty Git repository in c:/builds/XXX/YYY/.git/
Created fresh repository.
fatal: early EOF
fatal: the remote end hung up unexpectedly
fatal: index-pack failed
ERROR: Job failed: exit code 128

Expected behavior

The runner can fetch the code.

Environment description

Windows server 2019 with Docker version 19.03.5, build 2ee0c57608

Used GitLab Runner version

Running with gitlab-runner 12.8.0 (1b659122)

Possible fixes

I was able to fix this issue with a git config. https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning?page=1&tab=votes#tab-top Please check my merge request.

Edited by Márkó Ábrahám