ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.77k stars 879 forks source link

`git clone` freezes on `remote: Counting objects: X%` with gitlab over HTTPS #2067

Open Kairixir opened 1 year ago

Kairixir commented 1 year ago

Issue

git clone command freezes on remote: Counting objects line. Freeze occurs at random percentage.

May be related to #943

Hardware & Software

Snippet:

> git clone 'https://gitlab.com/XXXXX/YYYYYY.git'
Cloning into 'YYYYYY'...
Username for 'https://gitlab.com': USERNAME
Password for 'https://USERNAME@gitlab.com':
remote: Enumerating objects: 1352, done.
remote : Counting objects: 50% (499/997)

Expected behaviour

Repository is cloned to local

What I've tried:

Kairixir commented 1 year ago
          Using an older version of git and single thread solved it for me.

Model: iPad Air 4th gen OS: iPad OS 15.3.1 iSH: v1.2.3

Try following command.

apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config —global pack.threads “1”

Originally posted by @laddge in https://github.com/ish-app/ish/issues/943#issuecomment-1059617797

This workaround solves the issue

Won't close the issue, since it still exists