# Git checkout timesout on large repos from a Gitea server

**URL:** <https://drone.discourse.group/t/git-checkout-timesout-on-large-repos-from-a-gitea-server/12130>\
**Category:** Drone Support\
**Tags:** backend, git\
**Created:** [June 10, 2022, 4:20pm UTC](https://drone.discourse.group/t/git-checkout-timesout-on-large-repos-from-a-gitea-server/12130 "2022-06-10T16:20:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duckunix](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/duckunix/32/7696_2.png) [@duckunix](https://drone.discourse.group/u/duckunix)\
**Post date:** [June 10, 2022, 4:20pm UTC](https://drone.discourse.group/t/git-checkout-timesout-on-large-repos-from-a-gitea-server/12130/1 "2022-06-10T16:20:44Z")

</div>

So, I am working on getting Drone set up for my personal use. I am starting small with three git repos. I have one repo working perfectly, so I know I have drone talking to my gitea server (running in docker) just fine.

However, the other two repos are larger and older, and I am getting an error on the git clone step. One repo’s .git dir is 1.2G, the other is 2.0G.

The exact error I am getting is:

```auto
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/draft:
warning: redirecting to https://git.mydomain:443/don/myproject.git/
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
fatal: the remote end hung up unexpectedly

```

In doing some searching, one suggestion was to change git to use HTTP/1.1, and another was to change a buffer size.

I am wondering if there is any way to pass custom git settings into the clone stage? The other option I could try is to spin up a new repo w/o the history, but since these two projects are web sites with image assets, I fear that this will not solve the issue.

Thanks in advance,  
Don
