From nobody Wed Aug 9 00:31:53 2023 X-Original-To: git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLB2q0Z2Mz4Tn7D for ; Wed, 9 Aug 2023 00:37:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLB2n36c5z3MG3 for ; Wed, 9 Aug 2023 00:37:05 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net; dmarc=none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 2B3E28D4A178; Wed, 9 Aug 2023 00:36:57 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 7879C5C3A82F; Wed, 9 Aug 2023 00:36:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id t8cwBM95PqtK; Wed, 9 Aug 2023 00:31:55 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 197C85C3A82E; Wed, 9 Aug 2023 00:31:54 +0000 (UTC) Date: Wed, 9 Aug 2023 00:31:53 +0000 (UTC) From: "Bjoern A. Zeeb" To: Marc Branchaud cc: git@freebsd.org Subject: Re: fatal: unable to read In-Reply-To: Message-ID: References: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> <22663d4f-df74-e343-c182-64705ec59f5b@gmail.com> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1098556516-1788126082-1691541115=:24776" X-Spamd-Result: default: False [-1.24 / 15.00]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.977]; NEURAL_HAM_SHORT(-0.93)[-0.933]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; NEURAL_HAM_LONG(-0.03)[-0.029]; R_DKIM_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[git@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4RLB2n36c5z3MG3 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-1788126082-1691541115=:24776 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 7 Aug 2023, Marc Branchaud wrote: > > On 2023-08-07 01:18, Bjoern A. Zeeb wrote: >> >> %  git fsck --name-objects --connectivity-only --no-dangling >> error: b9cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: invalid sha1 pointer in >> resolve-undo of .git/worktrees/bz_maxmodname_D32383/index >> Checking connectivity: 4743571, done. >> Verifying commits in commit graph: 100% (384308/384308), done. >> >> The good news upfront;  I could ditch that worktree and branch if that >> will fix things.  It has follow-up work to the 2021 things but I have >> a copy of that outside that git tree (I love patch files in port trees :) > > If you no longer need the bz_maxmodname_D32383 worktree, then it sounds like > the easiest solution would be deleting it -- by running > git worktree remove bz_maxmodname_D32383 > in your "main" repo (which you created with "git clone"). > > (The bz_maxmodname_D32383 branch seems to be OK, according to fsck.) And how would one gotten rid of the invalid sha1 pointer in that case? I removed the worktree and gc now finishes. % git gc Enumerating objects: 4743571, done. Counting objects: 100% (4743571/4743571), done. Delta compression using up to 40 threads Compressing objects: 100% (913291/913291), done. Writing objects: 100% (4743571/4743571), done. Total 4743571 (delta 3423475), reused 4721415 (delta 3402164), pack-reused 0 Enumerating cruft objects: 38, done. Traversing cruft objects: 84, done. Counting objects: 100% (38/38), done. Delta compression using up to 40 threads Compressing objects: 100% (28/28), done. Writing objects: 100% (38/38), done. Total 38 (delta 10), reused 25 (delta 9), pack-reused 0 Checking connectivity: 4743609, done. Expanding reachable commits in commit graph: 397393, done. Thanks a lot for all the support (also Warner). Much appreciated! /bz -- Bjoern A. Zeeb r15:7 --1098556516-1788126082-1691541115=:24776--