Monorepo for Tangled tangled.org
859
fork

Configure Feed

Select the types of activity you want to include in your feed.

git clone https://tangled.sh/@tangled.sh/core fails: "protocol error: bad line length character: fata" #332

open opened by alyx.pink

Hi Team ๐Ÿ‘‹,

Iโ€™m experiencing an issue when attempting to clone the core repository.

Description#

When I try to perform a standard git clone https://tangled.sh/@tangled.sh/core, the process fails with the following error:

$ git clone https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
fatal: protocol error: bad line length character: fata
fatal: the remote end hung up unexpectedly

Workarounds#

Interestingly, I've found two workarounds that allow me to successfully clone the repository:

Shallow Clone: Using --depth=1 allows the clone to complete without errors:#

	$ git clone --depth=1 https://tangled.sh/@tangled.sh/core
	Cloning into 'core'...
	remote: Enumerating objects: 206, done.
	remote: Counting objects: 100% (206/206), done.
	remote: Compressing objects: 100% (180/180), done.
	remote: Total 206 (delta 26), reused 50 (delta 12), pack-reused 0
	Receiving objects: 100% (206/206), 157.09 KiB | 2.12 MiB/s, done.
	Resolving deltas: 100% (26/26), done.

Single Branch Clone: Cloning with --single-branch also resolves the issue:#

$ git clone --single-branch https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
remote: Enumerating objects: 4149, done.
remote: Counting objects: 100% (4149/4149), done.
remote: Compressing objects: 100% (2104/2104), done.
remote: Total 4149 (delta 3024), reused 2685 (delta 1883), pack-reused 0
Receiving objects: 100% (4149/4149), 14.33 MiB | 26.83 MiB/s, done.
Resolving deltas: 100% (3024/3024), done.

Reproduction Steps & Logs#

I was able to consistently reproduce the issue using the Docker image alpine:3.21 with git version 2.47.2:

$ docker run --rm -it alpine:3.21 ash
Unable to find image 'alpine:3.21' locally
3.21: Pulling from library/alpine
Digest: sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
Status: Downloaded newer image for alpine:3.21

/ # apk add git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
(1/12) Installing brotli-libs (1.1.0-r2)
(2/12) Installing c-ares (1.34.3-r0)
(3/12) Installing libunistring (1.2-r0)
(4/12) Installing libidn2 (2.3.7-r0)
(5/12) Installing nghttp2-libs (1.64.0-r0)
(6/12) Installing libpsl (0.21.5-r3)
(7/12) Installing zstd-libs (1.5.6-r2)
(8/12) Installing libcurl (8.12.1-r1)
(9/12) Installing libexpat (2.7.0-r0)
(10/12) Installing pcre2 (10.43-r0)
(11/12) Installing git (2.47.2-r0)
(12/12) Installing git-init-template (2.47.2-r0)
Executing busybox-1.37.0-r12.trigger
OK: 19 MiB in 27 packages

/ # git --version
git version 2.47.2

/ # git clone https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
fatal: protocol error: bad line length character: fata
fatal: the remote end hung up unexpectedly

/ # git clone -vvv https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
Server version is git/2.43.0
Server supports shallow
Server supports multi_ack_detailed
Server supports no-done
Server supports side-band-64k
Server supports thin-pack
Server supports no-progress
Server supports include-tag
Server supports ofs-delta
Server supports deepen-since
Server supports deepen-not
Server supports deepen-relative
want 4a0de78658a52a12568619dc14c64f9556219fa8 (refs/heads/add-migrations)
want ef63fa3bce65c0d1ea6cffda6cadf2ee96fe4992 (refs/heads/commits-page)
want 8f5bcee386acbf1116a818cd19e398b4d858197b (refs/heads/did-email-assoc)
want 0b8c2d96dc4f2424cd8d49f9ad6106357be4e7ee (refs/heads/drop-at)
want 01a642d7174238d096a6cf4c5144b6cef886e7aa (refs/heads/fix-jetstream-bugs)
want 05bfa4df1935b6a8e6755d0144d1cbbc6699748c (refs/heads/fix-refresh-issues)
want 11bff8339a998e68c5d63c348bba8dd0082cea89 (refs/heads/fix-tw-dark)
want cc344af0da418b803282054aee90e03b994437d7 (refs/heads/improve-styling)
want 05b5c39fd57ae1f64db67cb0709466896f879320 (refs/heads/issues-edit)
want 7373a797a0937691306e1c889d67bf49a2d7a4fa (refs/heads/master)
want c3e8d05a6f564dad5aba0bc44ee8ef00a6e457d6 (refs/heads/patch-requests)
want a440b20e369b3a53ac55e3ea1da9fdd3321033ab (refs/heads/pr-actions)
want a0a621dd0b30f4d20ee634a3bae272a0df5ba167 (refs/heads/profile-timeline)
want 7e904629226cffa9374ff978d0c46f5c1815a5a0 (refs/heads/session-refresh)
want 8c7515d90897421e686cc5c241f5494b4ef2daa0 (refs/heads/stars)
want 5211d908551ce0fbd89cf5b4a792648629c5f17e (refs/heads/txns)
want bc6ad0819d983bab9a0c1e1ec6e0d41ba76f5ff8 (refs/tags/v1.0.0-alpha)
want d5f7bdf7a155dbd39dee486e86c6eb9c58d3e4ad (refs/tags/v1.0.1-alpha)
want 07923e2011d2df1355976a643e9bec7b692ffb27 (refs/tags/v1.0.2-alpha)
done
POST git-upload-pack (gzip 1065 to 597 bytes)
fatal: protocol error: bad line length character: fata
fatal: the remote end hung up unexpectedly

/ # git clone -vvv --depth=1 https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
Server version is git/2.43.0
Server supports shallow
Server supports multi_ack_detailed
Server supports no-done
Server supports side-band-64k
Server supports thin-pack
Server supports no-progress
Server supports include-tag
Server supports ofs-delta
Server supports deepen-since
Server supports deepen-not
Server supports deepen-relative
want 7373a797a0937691306e1c889d67bf49a2d7a4fa (refs/heads/master)
POST git-upload-pack (180 bytes)
done
POST git-upload-pack (189 bytes)
remote: Enumerating objects: 206, done.
remote: Counting objects: 100% (206/206), done.
remote: Compressing objects: 100% (180/180), done.
remote: Total 206 (delta 26), reused 50 (delta 12), pack-reused 0
Receiving objects: 100% (206/206), 157.09 KiB | 2.07 MiB/s, done.
Resolving deltas: 100% (26/26), done.

/ # rm -rf core/

/ # git clone -vvv --single-branch https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
Server version is git/2.43.0
Server supports shallow
Server supports multi_ack_detailed
Server supports no-done
Server supports side-band-64k
Server supports thin-pack
Server supports no-progress
Server supports include-tag
Server supports ofs-delta
Server supports deepen-since
Server supports deepen-not
Server supports deepen-relative
want 7373a797a0937691306e1c889d67bf49a2d7a4fa (refs/heads/master)
done
POST git-upload-pack (177 bytes)
remote: Enumerating objects: 4149, done.
remote: Counting objects: 100% (4149/4149), done.
remote: Compressing objects: 100% (2104/2104), done.
remote: Total 4149 (delta 3024), reused 2685 (delta 1883), pack-reused 0
Receiving objects: 100% (4149/4149), 14.33 MiB | 25.18 MiB/s, done.
Resolving deltas: 100% (3024/3024), done.

Environment#

$ docker run --rm -it alpine:3.21 uname -a
Linux 3402029f9cf0 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 Linux

$ uname  -a
Linux ComputerName 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Git version used: 2.47.2


Let me know if you have any questions or need further assistance ๐Ÿ˜Š.

This shoud be fixed now! Let me know if you're still seeing it.

Thank you! I can confirm the fix is working:

/ # git clone https://tangled.sh/@tangled.sh/core
Cloning into 'core'...
remote: Enumerating objects: 4877, done.
remote: Counting objects: 100% (4877/4877), done.
remote: Compressing objects: 100% (1629/1629), done.
remote: Total 4877 (delta 3597), reused 4188 (delta 3084), pack-reused 0
Receiving objects: 100% (4877/4877), 14.40 MiB | 10.84 MiB/s, done.
Resolving deltas: 100% (3597/3597), done.
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:l5kd6i6y7ynnpz3af7tdk3qt/sh.tangled.repo.issue/3lll6pophjd22