We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: _pygit2.GitError: error parsing REF pkt-line Fetching: https://gitlab.freedesktop.org/xdg/shared-mime-info.git
_pygit2.GitError: error parsing REF pkt-line
I am not really sure why it fails. It works fine with the git command/GitPython. What is pygit2/libgit2 doing different?
❯ GIT_TRACE=true GIT_CURL_VERBOSE=true GIT_SSH_COMMAND="ssh -vvv" GIT_TRACE_PACK_ACCESS=true GIT_TRACE_PACKET=true GIT_TRACE_PACKFILE=true GIT_TRACE_PERFORMANCE=true GIT_TRACE_SETUP=true GIT_TRACE_SHALLOW=true git fetch origin 13:04:18.671782 trace.c:316 setup: git_dir: .git 13:04:18.671836 trace.c:317 setup: git_common_dir: .git 13:04:18.671842 trace.c:318 setup: worktree: /var/tmp/shared-mime-info 13:04:18.671846 trace.c:319 setup: cwd: /var/tmp/shared-mime-info 13:04:18.671849 trace.c:320 setup: prefix: (null) 13:04:18.671853 git.c:476 trace: built-in: git fetch origin 13:04:18.672391 run-command.c:667 trace: run_command: GIT_DIR=.git git remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:18.672414 run-command.c:759 trace: start_command: /usr/libexec/git/git remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:18.675205 git.c:772 trace: exec: git-remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:18.675257 run-command.c:667 trace: run_command: git-remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:18.675270 run-command.c:759 trace: start_command: /usr/libexec/git/git-remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:18.686302 http.c:877 == Info: Couldn't find host gitlab.freedesktop.org in the .netrc file; using defaults 13:04:18.687825 http.c:877 == Info: Host gitlab.freedesktop.org:443 was resolved. 13:04:18.687849 http.c:877 == Info: IPv6: 2a04:4e42:600::820, 2a04:4e42:200::820, 2a04:4e42:400::820, 2a04:4e42::820 13:04:18.687857 http.c:877 == Info: IPv4: 151.101.67.52, 151.101.195.52, 151.101.131.52, 151.101.3.52 13:04:18.687884 http.c:877 == Info: Trying [2a04:4e42:600::820]:443... 13:04:18.687947 http.c:877 == Info: Immediate connect fail for 2a04:4e42:600::820: Network is unreachable 13:04:18.687975 http.c:877 == Info: Trying [2a04:4e42:200::820]:443... 13:04:18.687987 http.c:877 == Info: Immediate connect fail for 2a04:4e42:200::820: Network is unreachable 13:04:18.688006 http.c:877 == Info: Trying [2a04:4e42:400::820]:443... 13:04:18.688016 http.c:877 == Info: Immediate connect fail for 2a04:4e42:400::820: Network is unreachable 13:04:18.688032 http.c:877 == Info: Trying [2a04:4e42::820]:443... 13:04:18.688046 http.c:877 == Info: Immediate connect fail for 2a04:4e42::820: Network is unreachable 13:04:18.688063 http.c:877 == Info: Trying 151.101.67.52:443... 13:04:18.719639 http.c:877 == Info: ALPN: curl offers h2,http/1.1 13:04:18.719910 http.c:877 == Info: TLSv1.3 (OUT), TLS handshake, Client hello (1): 13:04:18.750030 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, Server hello (2): 13:04:18.750575 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): 13:04:18.750617 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, Certificate (11): 13:04:18.751821 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, CERT verify (15): 13:04:18.751953 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, Finished (20): 13:04:18.752029 http.c:877 == Info: TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): 13:04:18.752072 http.c:877 == Info: TLSv1.3 (OUT), TLS handshake, Finished (20): 13:04:18.752168 http.c:877 == Info: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / x25519 / RSASSA-PSS 13:04:18.752178 http.c:877 == Info: ALPN: server accepted h2 13:04:18.752191 http.c:877 == Info: Server certificate: 13:04:18.752207 http.c:877 == Info: subject: CN=gitlab.freedesktop.org 13:04:18.752218 http.c:877 == Info: start date: Apr 6 14:47:43 2025 GMT 13:04:18.752226 http.c:877 == Info: expire date: Jul 5 14:47:42 2025 GMT 13:04:18.752238 http.c:877 == Info: subjectAltName: host "gitlab.freedesktop.org" matched cert's "gitlab.freedesktop.org" 13:04:18.752251 http.c:877 == Info: issuer: C=US; O=Let's Encrypt; CN=R11 13:04:18.752258 http.c:877 == Info: SSL certificate verify ok. 13:04:18.752270 http.c:877 == Info: Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption 13:04:18.752278 http.c:877 == Info: Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption 13:04:18.752284 http.c:877 == Info: Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption 13:04:18.752329 http.c:877 == Info: Connected to gitlab.freedesktop.org (151.101.67.52) port 443 13:04:18.752334 http.c:877 == Info: using HTTP/2 13:04:18.752393 http.c:877 == Info: [HTTP/2] [1] OPENED stream for https://gitlab.freedesktop.org/xdg/shared-mime-info.git/info/refs?service=git-upload-pack 13:04:18.752401 http.c:877 == Info: [HTTP/2] [1] [:method: GET] 13:04:18.752406 http.c:877 == Info: [HTTP/2] [1] [:scheme: https] 13:04:18.752410 http.c:877 == Info: [HTTP/2] [1] [:authority: gitlab.freedesktop.org] 13:04:18.752415 http.c:877 == Info: [HTTP/2] [1] [:path: /xdg/shared-mime-info.git/info/refs?service=git-upload-pack] 13:04:18.752420 http.c:877 == Info: [HTTP/2] [1] [user-agent: git/2.49.0] 13:04:18.752424 http.c:877 == Info: [HTTP/2] [1] [accept: */*] 13:04:18.752428 http.c:877 == Info: [HTTP/2] [1] [accept-encoding: deflate, gzip, br, zstd] 13:04:18.752432 http.c:877 == Info: [HTTP/2] [1] [accept-language: en-US, *;q=0.9] 13:04:18.752437 http.c:877 == Info: [HTTP/2] [1] [pragma: no-cache] 13:04:18.752442 http.c:877 == Info: [HTTP/2] [1] [git-protocol: version=2] 13:04:18.752492 http.c:824 => Send header, 0000000259 bytes (0x00000103) 13:04:18.752505 http.c:836 => Send header: GET /xdg/shared-mime-info.git/info/refs?service=git-upload-pack HTTP/2 13:04:18.752511 http.c:836 => Send header: Host: gitlab.freedesktop.org 13:04:18.752515 http.c:836 => Send header: User-Agent: git/2.49.0 13:04:18.752519 http.c:836 => Send header: Accept: */* 13:04:18.752523 http.c:836 => Send header: Accept-Encoding: deflate, gzip, br, zstd 13:04:18.752532 http.c:836 => Send header: Accept-Language: en-US, *;q=0.9 13:04:18.752536 http.c:836 => Send header: Pragma: no-cache 13:04:18.752539 http.c:836 => Send header: Git-Protocol: version=2 13:04:18.752544 http.c:836 => Send header: 13:04:18.752620 http.c:877 == Info: TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): 13:04:18.752683 http.c:877 == Info: Request completely sent off 13:04:18.781541 http.c:824 <= Recv header, 0000000013 bytes (0x0000000d) 13:04:18.781559 http.c:836 <= Recv header: HTTP/2 200 13:04:18.781570 http.c:824 <= Recv header, 0000000059 bytes (0x0000003b) 13:04:18.781572 http.c:836 <= Recv header: content-type: application/x-git-upload-pack-advertisement 13:04:18.781576 http.c:824 <= Recv header, 0000000025 bytes (0x00000019) 13:04:18.781578 http.c:836 <= Recv header: cache-control: no-cache 13:04:18.781580 http.c:824 <= Recv header, 0000000022 bytes (0x00000016) 13:04:18.781582 http.c:836 <= Recv header: accept-ranges: bytes 13:04:18.781586 http.c:824 <= Recv header, 0000000037 bytes (0x00000025) 13:04:18.781588 http.c:836 <= Recv header: date: Tue, 08 Apr 2025 19:04:18 GMT 13:04:18.781590 http.c:824 <= Recv header, 0000000018 bytes (0x00000012) 13:04:18.781592 http.c:836 <= Recv header: via: 1.1 varnish 13:04:18.781595 http.c:824 <= Recv header, 0000000011 bytes (0x0000000b) 13:04:18.781597 http.c:836 <= Recv header: age: 3147 13:04:18.781600 http.c:824 <= Recv header, 0000000040 bytes (0x00000028) 13:04:18.781602 http.c:836 <= Recv header: x-served-by: cache-dfw-kdal2120054-DFW 13:04:18.781605 http.c:824 <= Recv header, 0000000014 bytes (0x0000000e) 13:04:18.781607 http.c:836 <= Recv header: x-cache: HIT 13:04:18.781609 http.c:824 <= Recv header, 0000000017 bytes (0x00000011) 13:04:18.781611 http.c:836 <= Recv header: x-cache-hits: 1 13:04:18.781614 http.c:824 <= Recv header, 0000000037 bytes (0x00000025) 13:04:18.781616 http.c:836 <= Recv header: x-timer: S1744139059.776388,VS0,VE1 13:04:18.781618 http.c:824 <= Recv header, 0000000040 bytes (0x00000028) 13:04:18.781620 http.c:836 <= Recv header: strict-transport-security: max-age=300 13:04:18.781624 http.c:824 <= Recv header, 0000000021 bytes (0x00000015) 13:04:18.781626 http.c:836 <= Recv header: content-length: 176 13:04:18.781629 http.c:824 <= Recv header, 0000000002 bytes (0x00000002) 13:04:18.781631 http.c:836 <= Recv header: 13:04:18.781662 http.c:877 == Info: Connection #0 to host gitlab.freedesktop.org left intact 13:04:18.781677 pkt-line.c:85 packet: git< # service=git-upload-pack 13:04:18.781681 pkt-line.c:85 packet: git< 0000 13:04:18.781683 pkt-line.c:85 packet: git< version 2 13:04:18.781685 pkt-line.c:85 packet: git< agent=git/2.48.1.gl1 13:04:18.781687 pkt-line.c:85 packet: git< ls-refs=unborn 13:04:18.781689 pkt-line.c:85 packet: git< fetch=shallow wait-for-done filter 13:04:18.781690 pkt-line.c:85 packet: git< server-option 13:04:18.781692 pkt-line.c:85 packet: git< object-format=sha1 13:04:18.781694 pkt-line.c:85 packet: git< 0000 13:04:18.781763 pkt-line.c:85 packet: fetch< version 2 13:04:18.781778 pkt-line.c:85 packet: fetch< agent=git/2.48.1.gl1 13:04:18.781781 pkt-line.c:85 packet: fetch< ls-refs=unborn 13:04:18.781784 pkt-line.c:85 packet: fetch< fetch=shallow wait-for-done filter 13:04:18.781786 pkt-line.c:85 packet: fetch< server-option 13:04:18.781788 pkt-line.c:85 packet: fetch< object-format=sha1 13:04:18.781790 pkt-line.c:85 packet: fetch< 0000 13:04:18.781803 pkt-line.c:85 packet: fetch> command=ls-refs 13:04:18.781812 pkt-line.c:85 packet: git< command=ls-refs 13:04:18.781812 pkt-line.c:85 packet: fetch> agent=git/2.49.0-Linux 13:04:18.781817 pkt-line.c:85 packet: fetch> object-format=sha1 13:04:18.781819 pkt-line.c:85 packet: git< agent=git/2.49.0-Linux 13:04:18.781820 pkt-line.c:85 packet: fetch> 0001 13:04:18.781822 pkt-line.c:85 packet: git< object-format=sha1 13:04:18.781826 pkt-line.c:85 packet: fetch> peel 13:04:18.781827 pkt-line.c:85 packet: git< 0001 13:04:18.781829 pkt-line.c:85 packet: fetch> symrefs 13:04:18.781831 pkt-line.c:85 packet: git< peel 13:04:18.781832 pkt-line.c:85 packet: fetch> unborn 13:04:18.781834 pkt-line.c:85 packet: git< symrefs 13:04:18.781835 pkt-line.c:85 packet: fetch> ref-prefix refs/heads/ 13:04:18.781838 pkt-line.c:85 packet: git< unborn 13:04:18.781839 pkt-line.c:85 packet: fetch> ref-prefix refs/heads/master 13:04:18.781841 pkt-line.c:85 packet: git< ref-prefix refs/heads/ 13:04:18.781843 pkt-line.c:85 packet: fetch> ref-prefix refs/tags/ 13:04:18.781845 pkt-line.c:85 packet: git< ref-prefix refs/heads/master 13:04:18.781846 pkt-line.c:85 packet: fetch> ref-prefix HEAD 13:04:18.781848 pkt-line.c:85 packet: git< ref-prefix refs/tags/ 13:04:18.781849 pkt-line.c:85 packet: fetch> 0000 13:04:18.781851 pkt-line.c:85 packet: git< ref-prefix HEAD 13:04:18.781853 pkt-line.c:85 packet: git< 0000 13:04:18.781890 http.c:877 == Info: Couldn't find host gitlab.freedesktop.org in the .netrc file; using defaults 13:04:18.781898 http.c:877 == Info: Re-using existing connection with host gitlab.freedesktop.org 13:04:18.781965 http.c:877 == Info: [HTTP/2] [3] OPENED stream for https://gitlab.freedesktop.org/xdg/shared-mime-info.git/git-upload-pack 13:04:18.781969 http.c:877 == Info: [HTTP/2] [3] [:method: POST] 13:04:18.781971 http.c:877 == Info: [HTTP/2] [3] [:scheme: https] 13:04:18.781973 http.c:877 == Info: [HTTP/2] [3] [:authority: gitlab.freedesktop.org] 13:04:18.781975 http.c:877 == Info: [HTTP/2] [3] [:path: /xdg/shared-mime-info.git/git-upload-pack] 13:04:18.781977 http.c:877 == Info: [HTTP/2] [3] [user-agent: git/2.49.0] 13:04:18.781979 http.c:877 == Info: [HTTP/2] [3] [accept-encoding: deflate, gzip, br, zstd] 13:04:18.781981 http.c:877 == Info: [HTTP/2] [3] [content-type: application/x-git-upload-pack-request] 13:04:18.781983 http.c:877 == Info: [HTTP/2] [3] [accept: application/x-git-upload-pack-result] 13:04:18.781985 http.c:877 == Info: [HTTP/2] [3] [accept-language: en-US, *;q=0.9] 13:04:18.781989 http.c:877 == Info: [HTTP/2] [3] [git-protocol: version=2] 13:04:18.781997 http.c:877 == Info: [HTTP/2] [3] [content-length: 214] 13:04:18.782028 http.c:824 => Send header, 0000000331 bytes (0x0000014b) 13:04:18.782038 http.c:836 => Send header: POST /xdg/shared-mime-info.git/git-upload-pack HTTP/2 13:04:18.782040 http.c:836 => Send header: Host: gitlab.freedesktop.org 13:04:18.782042 http.c:836 => Send header: User-Agent: git/2.49.0 13:04:18.782045 http.c:836 => Send header: Accept-Encoding: deflate, gzip, br, zstd 13:04:18.782046 http.c:836 => Send header: Content-Type: application/x-git-upload-pack-request 13:04:18.782049 http.c:836 => Send header: Accept: application/x-git-upload-pack-result 13:04:18.782051 http.c:836 => Send header: Accept-Language: en-US, *;q=0.9 13:04:18.782052 http.c:836 => Send header: Git-Protocol: version=2 13:04:18.782054 http.c:836 => Send header: Content-Length: 214 13:04:18.782056 http.c:836 => Send header: 13:04:18.782059 http.c:877 == Info: upload completely sent off: 214 bytes 13:04:20.127084 http.c:824 <= Recv header, 0000000013 bytes (0x0000000d) 13:04:20.127118 http.c:836 <= Recv header: HTTP/2 200 13:04:20.127137 http.c:824 <= Recv header, 0000000052 bytes (0x00000034) 13:04:20.127144 http.c:836 <= Recv header: content-type: application/x-git-upload-pack-result 13:04:20.127153 http.c:824 <= Recv header, 0000000025 bytes (0x00000019) 13:04:20.127160 http.c:836 <= Recv header: cache-control: no-cache 13:04:20.127167 http.c:824 <= Recv header, 0000000022 bytes (0x00000016) 13:04:20.127171 http.c:836 <= Recv header: accept-ranges: bytes 13:04:20.127179 http.c:824 <= Recv header, 0000000037 bytes (0x00000025) 13:04:20.127185 http.c:836 <= Recv header: date: Tue, 08 Apr 2025 19:04:20 GMT 13:04:20.127192 http.c:824 <= Recv header, 0000000018 bytes (0x00000012) 13:04:20.127198 http.c:836 <= Recv header: via: 1.1 varnish 13:04:20.127205 http.c:824 <= Recv header, 0000000040 bytes (0x00000028) 13:04:20.127211 http.c:836 <= Recv header: x-served-by: cache-dfw-kdal2120054-DFW 13:04:20.127220 http.c:824 <= Recv header, 0000000015 bytes (0x0000000f) 13:04:20.127225 http.c:836 <= Recv header: x-cache: MISS 13:04:20.127235 http.c:824 <= Recv header, 0000000017 bytes (0x00000011) 13:04:20.127240 http.c:836 <= Recv header: x-cache-hits: 0 13:04:20.127249 http.c:824 <= Recv header, 0000000040 bytes (0x00000028) 13:04:20.127254 http.c:836 <= Recv header: x-timer: S1744139059.805355,VS0,VE1317 13:04:20.127263 http.c:824 <= Recv header, 0000000040 bytes (0x00000028) 13:04:20.127269 http.c:836 <= Recv header: strict-transport-security: max-age=300 13:04:20.127278 http.c:824 <= Recv header, 0000000002 bytes (0x00000002) 13:04:20.127283 http.c:836 <= Recv header: 13:04:20.127333 pkt-line.c:85 packet: fetch< 03cb97596e90feda547c9b6a2addd656b14d1598 HEAD symref-target:refs/heads/master 13:04:20.127368 pkt-line.c:85 packet: fetch< c4300b0d938e7a57e340d5b22703ec693c4bf8b8 refs/heads/bzip_issue_195 13:04:20.127377 pkt-line.c:85 packet: fetch< 03cb97596e90feda547c9b6a2addd656b14d1598 refs/heads/master 13:04:20.127385 pkt-line.c:85 packet: fetch< 0825e97fb1a6475be2eaea2aede86daa774d669f refs/heads/wip/hadess/more-genesis 13:04:20.127393 pkt-line.c:85 packet: fetch< 774ce315ea277d116607cb386ef1eac23e223e2b refs/heads/work/dfaure/always-build-pot 13:04:20.127401 pkt-line.c:85 packet: fetch< a3c481fdba0070f8fdaedcc1474a44d8f8331a35 refs/heads/work/dfaure/hdr-alias 13:04:20.127408 pkt-line.c:85 packet: fetch< 7a5c5456f4811ee718e906dc34510cc6a2eee8bb refs/tags/2.0 peeled:ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1 13:04:20.127418 pkt-line.c:85 packet: fetch< 18e558fa1c8b90b86757ade09a4ba4d6a6cf8f70 refs/tags/2.1 13:04:20.127426 pkt-line.c:85 packet: fetch< 13695c7225c2f525a435e72739c33ac32bbfbbb9 refs/tags/2.2 13:04:20.127434 pkt-line.c:85 packet: fetch< 8e80a317f5c61a7f410330abea441e0b0b9280b5 refs/tags/2.3 13:04:20.127441 pkt-line.c:85 packet: fetch< 9a6d6b8e963935f145f3a1ef446552de6996dada refs/tags/2.4 13:04:20.127448 pkt-line.c:85 packet: fetch< 971df0f0f670148fde061eecd147f66021de76db refs/tags/Release-0-10 peeled:dc2724f1d1b010a80b269ef21a1e613f55170777 13:04:20.127456 pkt-line.c:85 packet: fetch< 84f17ca6267e2c80aa7aa7ee2e53dba053fc02b5 refs/tags/Release-0-11 peeled:92cca5e4cec157f252fd77b5ce23853974603906 13:04:20.127464 pkt-line.c:85 packet: fetch< 622409975c905976fabab08a1e0b3ee486f5a7b5 refs/tags/Release-0-12 peeled:737edc3a3a03213e359772ce5f97b8a1f231a100 13:04:20.127472 pkt-line.c:85 packet: fetch< a3add57f950597ec5d7bdb49fbb5e5410f46885c refs/tags/Release-0-13 peeled:1d706580d735d9dc343c5706c59b76debcf53c30 13:04:20.127480 pkt-line.c:85 packet: fetch< 5fe7365c05e3403696d597621da26f7bf72ec871 refs/tags/Release-0-13-1 peeled:3581f97e1ba370ff74bc7d9c126be4b5d8cb29da 13:04:20.127487 pkt-line.c:85 packet: fetch< a496828a2346843d7ca3649cc3927d07d8d5e93a refs/tags/Release-0-14 peeled:90c92706a446dcc25714723c6eef694d304a8112 13:04:20.127495 pkt-line.c:85 packet: fetch< 7920c5cc3039b04df11a794558479ed268722432 refs/tags/Release-0-15 peeled:a088af610aafdc597692f82ffb28f1e88dfeccf0 13:04:20.127516 pkt-line.c:85 packet: fetch< 9f1a762bff571ae0325fc8cb17d2d986033986f0 refs/tags/Release-0-16 peeled:13caacd00efe9d021d5216d3ba58b1bf263f4487 13:04:20.127522 pkt-line.c:85 packet: fetch< 48be1c29f4d21f50c8633d81eb9e9416bbd33582 refs/tags/Release-0-17 peeled:565f5f36b17dcc074b87c23e7e7ab121cbbf43f6 13:04:20.127528 pkt-line.c:85 packet: fetch< f7119ddd38d0e3d68184fbc1e1a0b967043f42f6 refs/tags/Release-0-18 peeled:585add615e22a6ed69630c0512bdaf6f0f831ae6 13:04:20.127536 pkt-line.c:85 packet: fetch< 22f3b38a8c46809b2a5a635b8380adecfaef5a82 refs/tags/Release-0-19 peeled:27501d60268a59e5c2cd03081dee4e8d49334da9 13:04:20.127543 pkt-line.c:85 packet: fetch< c5e5b398b0775deeb08d4006912cfddab515265f refs/tags/Release-0-20 peeled:eeebdacf44ac9639b41d501ee760cdd3c843838f 13:04:20.127551 pkt-line.c:85 packet: fetch< eec44b6efe10839f1a2fa80b9ce6d96b84188085 refs/tags/Release-0-21 peeled:45628090b9357f247a4e35bc99f5b37e968727c2 13:04:20.127559 pkt-line.c:85 packet: fetch< 8dec53a68f3de210cd6653c5621dd17c8a638b4c refs/tags/Release-0-22 peeled:bdeaf4cbdcec0c92d77e108e4369b7b95d9e005b 13:04:20.127567 pkt-line.c:85 packet: fetch< dfca8a82dcfcbfa704ca2769ed8da806891d0b1b refs/tags/Release-0-23 peeled:cd65d1bdf282c02d75aa180172eaa4361300b91a 13:04:20.127574 pkt-line.c:85 packet: fetch< 49ad4a0a9832a7c9f92e94f7829485c8364224a0 refs/tags/Release-0-30 peeled:34d550dec241fb45948ef67144d0148609f769c8 13:04:20.127585 pkt-line.c:85 packet: fetch< f2a7471cb0524348dff2fe946acd8240bce427b0 refs/tags/Release-0-40 peeled:f71c7d29270c586df39c801574524d500d9590e7 13:04:20.127593 pkt-line.c:85 packet: fetch< 0851fdc1ec5754a2f95c9b32be0bdcaeb55e5259 refs/tags/Release-0-50 peeled:3005dd75973e73b353f4befa5ee8207558b7fafa 13:04:20.127601 pkt-line.c:85 packet: fetch< c7028174f0224cf7afa9f95b43c914cebed5235d refs/tags/Release-0-51 peeled:a14f8706b83550230b047b3ff6b4efd818675724 13:04:20.127609 pkt-line.c:85 packet: fetch< 1859bc6ab707deae38ad64298a69756fb8d9c1c2 refs/tags/Release-0-60 peeled:4da887c290341dd757726c6ab52952d0b63742ab 13:04:20.127617 pkt-line.c:85 packet: fetch< e1c87c08f6009e3709013f652da267cb63b2fd18 refs/tags/Release-0-70 peeled:84ceac3140d5a09bf62b0fe807f94152f304bb62 13:04:20.127624 pkt-line.c:85 packet: fetch< 281d4391b848ac156cfaa3dbe8f1fd7789e282e7 refs/tags/Release-0-71 peeled:009fd196ca1f13f3d8a4b9c24208244fa40b0af3 13:04:20.127631 pkt-line.c:85 packet: fetch< 0ca8bb47fab816db02e4a7d92630b796a6eed97f refs/tags/Release-0-80 peeled:beca76ed2a757bbf74118e522d5a6e05f71fcbf4 13:04:20.127639 pkt-line.c:85 packet: fetch< a818b7dfae8465a7fb6d86fb7d899823dc8ca2a1 refs/tags/Release-0-9 peeled:96ab8710061564e3bf73c23bf012bbd83b3ff98b 13:04:20.127647 pkt-line.c:85 packet: fetch< 1ca174dfc10cb13fc44706e0a5336076dde4332c refs/tags/Release-0-90 peeled:1b716d7f4d6548effb8473301acd72ed59cb358b 13:04:20.127655 pkt-line.c:85 packet: fetch< 417baa05527d5e86243ce85084d9baec53ce9556 refs/tags/Release-0-91 peeled:5ee6883cb0dda03e82c7555a032d88504d67de89 13:04:20.128055 pkt-line.c:85 packet: fetch< d876e816b640941c45a12936d116a040397ad02d refs/tags/Release-1-0 peeled:cdf866acbee836578128bf652bd775f8f8225be9 13:04:20.128064 pkt-line.c:85 packet: fetch< e71062fe2f6812705ae1e15afdcb5d8267f015ab refs/tags/Release-1-1 peeled:f9d4f260d78b263c9730786df5db20df998b734d 13:04:20.128071 pkt-line.c:85 packet: fetch< ceb6bc6b911cc5eb0d787fd82e5c7f673214c41c refs/tags/Release-1-10 peeled:111d3397ceb17df166ec316d86a68cf56e927f00 13:04:20.128079 pkt-line.c:85 packet: fetch< 302b91efa43136d5685d6834e0efd1d2beffeee1 refs/tags/Release-1-11 peeled:9ced55d9eab33882ab5d129e3e5cf1dcc3d0d8b9 13:04:20.128087 pkt-line.c:85 packet: fetch< e9469d922d95e75cdfae6c30f814132d6fca996f refs/tags/Release-1-12 peeled:41a9a684249cd47aef4d65f81180ee69aa358d71 13:04:20.128094 pkt-line.c:85 packet: fetch< 0a0e392d4785bc4e5d04b7bbe234dc5ae7eb39b8 refs/tags/Release-1-13 peeled:148effac5c9f6514577934a27f23cb87fd5b386b 13:04:20.128084 http.c:877 == Info: Connection #0 to host gitlab.freedesktop.org left intact 13:04:20.128103 pkt-line.c:85 packet: fetch< dc3ef0176fc72aa2fd62b96218c0f38b10baa605 refs/tags/Release-1-13-1 peeled:caf418fa90ebcc3243f12df46ebb6603d5ae183f 13:04:20.128115 pkt-line.c:85 packet: fetch< eb13250ed3cd04c90f13946fb99c6caaba3e4715 refs/tags/Release-1-14 peeled:66ae46cbaf40579a4686b9793dc19b731bbbc85e 13:04:20.128121 pkt-line.c:85 packet: git> 0002 13:04:20.128123 pkt-line.c:85 packet: fetch< f9d33691dd6044105a25a911d6a318f38738a723 refs/tags/Release-1-15 peeled:829b26d85e7d89a0caee03046c3bce373f04c80a 13:04:20.128138 pkt-line.c:85 packet: fetch< c8e27f3c4240ed96bd2c2f55ac78f52a366bb403 refs/tags/Release-1-2 peeled:8176c639e18ab5a66a691a3f78a4b9e1077b2c9d 13:04:20.128146 pkt-line.c:85 packet: fetch< 702a05b348918f53654a9b9b3f42466e9975c158 refs/tags/Release-1-3 peeled:9e46e73c60d129a2367eb715ae55d9f503c26074 13:04:20.128154 pkt-line.c:85 packet: fetch< b79dcb4ac542dfad9bca55b69587ff1a4647d10d refs/tags/Release-1-4 peeled:c136fc2578aa8f7c0e098008da18d324033eb991 13:04:20.128162 pkt-line.c:85 packet: fetch< 59f6c458ee16dabc996bbb2e5c4eca924c9138f3 refs/tags/Release-1-5 peeled:393414c9dbf101fd76fcba48d72df2b6cd25bb29 13:04:20.128171 pkt-line.c:85 packet: fetch< 7cff1a2641c206dbd6eb97ca7ce72379e1f1b0ea refs/tags/Release-1-6 peeled:f4e094740c36c629b5284ac270a0b08d8c75cb85 13:04:20.128178 pkt-line.c:85 packet: fetch< 95ec902d8b38d0730e572b9296749de5f0537a8e refs/tags/Release-1-7 peeled:6a03dab04007c907485201e6aab58b89863ce1f2 13:04:20.128186 pkt-line.c:85 packet: fetch< 0a1962383e09a794513b36e3376e5300ffc173b6 refs/tags/Release-1-8 peeled:42ce8b5be943ad3bd903a590914c760e439ecf4c 13:04:20.128194 pkt-line.c:85 packet: fetch< 96f81a77d4d3dbcae81ccea5df66db45481192f9 refs/tags/Release-1-9 peeled:71a226620c948ebbc65fdab834a2f54ce6ca9e31 13:04:20.128201 pkt-line.c:85 packet: fetch< 0000 13:04:20.128240 pkt-line.c:85 packet: fetch< 0002 13:04:20.128786 run-command.c:667 trace: run_command: git rev-list --objects --stdin --not --exclude-hidden=fetch --all --quiet --alternate-refs 13:04:20.128808 run-command.c:759 trace: start_command: /usr/libexec/git/git rev-list --objects --stdin --not --exclude-hidden=fetch --all --quiet --alternate-refs 13:04:20.135904 packfile.c:1685 .git/objects/pack/pack-e424ca2578c50e371f3233a8cfd4902c3321adae.pack 26505237 13:04:20.136035 packfile.c:1685 .git/objects/pack/pack-e424ca2578c50e371f3233a8cfd4902c3321adae.pack 26460254 13:04:20.136085 packfile.c:1685 .git/objects/pack/pack-e424ca2578c50e371f3233a8cfd4902c3321adae.pack 26462762 13:04:20.136118 packfile.c:1685 .git/objects/pack/pack-e424ca2578c50e371f3233a8cfd4902c3321adae.pack 26460070 13:04:20.136142 packfile.c:1685 .git/objects/pack/pack-e424ca2578c50e371f3233a8cfd4902c3321adae.pack 26462318 13:04:20.138917 trace.c:416 performance: 1.463817967 s: git command: /usr/libexec/git/git remote-https origin https://gitlab.freedesktop.org/xdg/shared-mime-info.git 13:04:20.139197 read-cache.c:2392 performance: 0.000113784 s: read cache .git/index 13:04:20.139236 run-command.c:1534 run_processes_parallel: preparing to run up to 1 tasks 13:04:20.139244 run-command.c:1562 run_processes_parallel: done 13:04:20.139251 run-command.c:667 trace: run_command: git maintenance run --auto --no-quiet --detach 13:04:20.139277 run-command.c:759 trace: start_command: /usr/libexec/git/git maintenance run --auto --no-quiet --detach 13:04:20.141069 trace.c:316 setup: git_dir: .git 13:04:20.141093 trace.c:317 setup: git_common_dir: .git 13:04:20.141098 trace.c:318 setup: worktree: /var/tmp/shared-mime-info 13:04:20.141101 trace.c:319 setup: cwd: /var/tmp/shared-mime-info 13:04:20.141104 trace.c:320 setup: prefix: (null) 13:04:20.141107 git.c:476 trace: built-in: git maintenance run --auto --no-quiet --detach 13:04:20.141400 trace.c:416 performance: 0.000453333 s: git command: /usr/libexec/git/git maintenance run --auto --no-quiet --detach 13:04:20.141612 trace.c:416 performance: 1.470009773 s: git command: git fetch origin
Python 3.13.2 (main, Feb 05 2025, 09:57:44) [GCC] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from git import Repo >>> repo = Repo("/var/tmp/shared-mime-info") >>> list(repo.remote().urls) ['https://gitlab.freedesktop.org/xdg/shared-mime-info.git'] >>> repo.remote().fetch() [<git.remote.FetchInfo object at 0x7f366df61a80>, <git.remote.FetchInfo object at 0x7f366df61b20>, <git.remote.FetchInfo object at 0x7f366df61a30>, <git.remote.FetchInfo object at 0x7f366df61030>, <git.remote.FetchInfo object at 0x7f366df61210>] >>> import pygit2 >>> repo = pygit2.Repository(pygit2.discover_repository("/var/tmp/shared-mime-info")) >>> [remote.url for remote in repo.remotes] ['https://gitlab.freedesktop.org/xdg/shared-mime-info.git'] >>> list(repo.remotes)[0].fetch() Traceback (most recent call last): File "<python-input-7>", line 1, in <module> list(repo.remotes)[0].fetch() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/var/tmp/.venv/lib64/python3.13/site-packages/pygit2/remotes.py", line 160, in fetch payload.check_error(err) ~~~~~~~~~~~~~~~~~~~^^^^^ File "/var/tmp/.venv/lib64/python3.13/site-packages/pygit2/callbacks.py", line 99, in check_error check_error(error_code) ~~~~~~~~~~~^^^^^^^^^^^^ File "/var/tmp/.venv/lib64/python3.13/site-packages/pygit2/errors.py", line 66, in check_error raise GitError(message) _pygit2.GitError: error parsing REF pkt-line
How can I find out what goto was triggered in libgit2 ref_pkt here: https://github.com/libgit2/libgit2/blob/21a351b0ed207d0871cb23e09c027d1ee42eae98/src/libgit2/transports/smart_pkt.c#L277-L340
goto
ref_pkt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error:
_pygit2.GitError: error parsing REF pkt-line
Fetching: https://gitlab.freedesktop.org/xdg/shared-mime-info.git
I am not really sure why it fails. It works fine with the git command/GitPython. What is pygit2/libgit2 doing different?
How can I find out what
goto
was triggered in libgit2ref_pkt
here:https://github.com/libgit2/libgit2/blob/21a351b0ed207d0871cb23e09c027d1ee42eae98/src/libgit2/transports/smart_pkt.c#L277-L340
The text was updated successfully, but these errors were encountered: