pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

clone / fetch operations are extremely slow on gitlab cloud repos

Open nadavhaik opened this issue 8 months ago • 2 comments

Reproduces on pygit2 1.17.0/1.18.0 / python 3.11 on Mac / Linux:

import pygit2
pygit2.clone_repository("https://gitlab.com/antora/antora", "/tmp/antora")

Takes more than 10 minutes, while the cli equivalent:

git clone https://gitlab.com/antora/antora /tmp/antora 

Takes a few seconds. Started happening ~10 days ago in our production env, worked well before and still works well for github and bitbucket hosted repos (moving the problematic repos to github solves it). Started happening out of no where - we didn't deploy or made any change in our environment.

nadavhaik avatar May 04 '25 11:05 nadavhaik

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/538342

nadavhaik avatar May 04 '25 13:05 nadavhaik

Looks like it was caused by this issue. When will this fix be reflected in pygit2?

nadavhaik avatar May 06 '25 11:05 nadavhaik