You are not logged in.

#1 2024-04-01 13:00:36

patlefort
Member
Registered: 2021-01-30
Posts: 15

git clone --mirror cause error 400 on some repos.

For example: `git clone --mirror https://github.com/flutter/flutter.git` result in `error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400`.

I tested on Fedora and it work fine, but not on any Arch installation I have.

running the command with `GIT_TRACE_CURL=1` reveals the following:

08:39:37.610719 http.c:790              => Send header, 0000000293 bytes (0x00000125)
08:39:37.610728 http.c:802              => Send header: POST /flutter/flutter.git/git-upload-pack HTTP/2
08:39:37.610737 http.c:802              => Send header: Host: github.com
08:39:37.610743 http.c:802              => Send header: User-Agent: git/2.44.0
08:39:37.610748 http.c:802              => Send header: Accept-Encoding: deflate, gzip, br, zstd
08:39:37.610751 http.c:802              => Send header: Content-Type: application/x-git-upload-pack-request
08:39:37.610758 http.c:802              => Send header: Accept: application/x-git-upload-pack-result
08:39:37.610765 http.c:802              => Send header: Accept-Language: en-US, *;q=0.9
08:39:37.610772 http.c:802              => Send header: Git-Protocol: version=2
08:39:37.610776 http.c:802              => Send header:
08:39:37.610783 http.c:816              => Send data, 0000000014 bytes (0x0000000e)
08:39:37.610789 http.c:831              => Send data: 4..0011..0....
08:39:37.610795 http.c:843              == Info: upload completely sent off: 14 bytes
08:39:37.610822 http.c:816              => Send SSL data, 0000000005 bytes (0x00000005)
08:39:37.610827 http.c:831              => Send SSL data: .....
08:39:37.610832 http.c:816              => Send SSL data, 0000000001 bytes (0x00000001)
08:39:37.610836 http.c:831              => Send SSL data: .
08:39:37.648227 http.c:816              <= Recv SSL data, 0000000005 bytes (0x00000005)
08:39:37.648237 http.c:831              <= Recv SSL data: ....+
08:39:37.648249 http.c:816              <= Recv SSL data, 0000000001 bytes (0x00000001)
08:39:37.648251 http.c:831              <= Recv SSL data: .
08:39:37.678018 http.c:816              <= Recv SSL data, 0000000005 bytes (0x00000005)
08:39:37.678028 http.c:831              <= Recv SSL data: .....
08:39:37.678041 http.c:816              <= Recv SSL data, 0000000001 bytes (0x00000001)
08:39:37.678044 http.c:831              <= Recv SSL data: .
08:39:37.678062 http.c:790              <= Recv header, 0000000013 bytes (0x0000000d)
08:39:37.678072 http.c:802              <= Recv header: HTTP/2 400
08:39:37.678082 http.c:790              <= Recv header, 0000000026 bytes (0x0000001a)
08:39:37.678085 http.c:802              <= Recv header: server: GitHub-Babel/3.0
08:39:37.678090 http.c:790              <= Recv header, 0000000054 bytes (0x00000036)
08:39:37.678094 http.c:802              <= Recv header: content-security-policy: default-src 'none'; sandbox
08:39:37.678099 http.c:790              <= Recv header, 0000000041 bytes (0x00000029)
08:39:37.678102 http.c:802              <= Recv header: content-type: text/plain; charset=UTF-8
08:39:37.678109 http.c:790              <= Recv header, 0000000019 bytes (0x00000013)
08:39:37.678113 http.c:802              <= Recv header: content-length: 0
08:39:37.678118 http.c:790              <= Recv header, 0000000037 bytes (0x00000025)
08:39:37.678122 http.c:802              <= Recv header: date: Mon, 01 Apr 2024 12:39:37 GMT
08:39:37.678127 http.c:790              <= Recv header, 0000000057 bytes (0x00000039)
08:39:37.678132 http.c:802              <= Recv header: x-github-request-id: 2442:2C2B:26FEA5D:35B8980:660AAB09
08:39:37.678137 http.c:790              <= Recv header, 0000000023 bytes (0x00000017)
08:39:37.678140 http.c:802              <= Recv header: x-frame-options: DENY
08:39:37.678145 http.c:790              <= Recv header, 0000000002 bytes (0x00000002)
08:39:37.678148 http.c:802              <= Recv header:
08:39:37.678158 http.c:816              <= Recv data, 0000000000 bytes (0x00000000)
08:39:37.678170 http.c:843              == Info: Connection #0 to host github.com left intact

Offline

#2 2024-04-02 11:01:18

loqs
Member
Registered: 2014-03-06
Posts: 17,742

Re: git clone --mirror cause error 400 on some repos.

Offline

Board footer

Powered by FluxBB