From nobody Wed Aug 9 13:03:04 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 4RLVbb0MJjz4pwtp for ; Wed, 9 Aug 2023 13:03:07 +0000 (UTC) (envelope-from marcnarc@gmail.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLVbZ5Cc2z4Djy for ; Wed, 9 Aug 2023 13:03:06 +0000 (UTC) (envelope-from marcnarc@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-76ad842d12fso515060685a.3 for ; Wed, 09 Aug 2023 06:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691586186; x=1692190986; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0Ddwye1YUp9u3tqGy+Pj5T3+YYmPA9+LN4JB+UumkS8=; b=E3UjQS+pHE/i0mVin1XzDcBHLkHcH0tExQb8m1I7qbW04NK/zgm2fXjQzT+yGk4j0/ 0uUuAaWvwcdOhfjdjIXkvgD9fFemqQ9Rj2/A+ugDRD3/+AWqPomjXMbbNizHdhO/PIN8 ntwe/JF+tFTh0PAzoDC8dMw7HfbgdUAqYCjmaiDLnsVMWBag9rzYURtOpqEWQ4LMuM2x q5MK23BacuAViJTeSOrO5LvV8ht++fxOosbMdi74ckpE6aeWwbS75axYbDm7h250M0Ry 2oh0gTSuGHDmX+RK+tMpzDay47plNeMP38Ru7xemJQVH3tgyITIWQm7ilYLrzi5hXmBy bgYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691586186; x=1692190986; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0Ddwye1YUp9u3tqGy+Pj5T3+YYmPA9+LN4JB+UumkS8=; b=iC9FfDbH8qfFKgurEUAsdwkbtQaB2nudUufZp0sAJzdSG2rJy08Ouzn/cqlNiTWlAw v2fnJrFiawLnQnIkE/wLs8hsZm/4UqZh6d6NgDRn70hcwPJbe1cQxPFc1rTHhy0O2SQ5 uNYFril3UI589LI3mK+3AxQK/PQFK9fksYsJ2YoGMsGKDy/OFzwTR2VD+Xmhg92AQBQ2 IgRJ6eKnuJ/wL/hEpiJcwN8gAs1nbpfxe9x7Vm30YUgCeKqh2wr+vBd5mSMb1FHK0f7A zGAjjPWW02qC214/vSLDE7UDGmlgIhT2sWak+SU3X1+09j/SU9i4AC4TsSdK5Ezjta/D y3iQ== X-Gm-Message-State: AOJu0YytKGypZhsR2LUzeGauIa4vw3fWI8eT0EYNBCdnTPUyXvsiK879 MbiDhj3iS5QXyTqRWG6yM0DjAqrGS/EQpA== X-Google-Smtp-Source: AGHT+IHQZsjC4jMMOn0TTefgIBsw0GtdpCYPfksISO0HjIQKtaEuEEVu+B1l5WZq5DTD3iDi/49s0A== X-Received: by 2002:a05:620a:4495:b0:76c:a911:f75f with SMTP id x21-20020a05620a449500b0076ca911f75fmr3808865qkp.53.1691586185496; Wed, 09 Aug 2023 06:03:05 -0700 (PDT) Received: from [10.10.0.39] ([216.113.107.66]) by smtp.gmail.com with ESMTPSA id 24-20020a05620a06d800b00767ed2e6436sm3962530qky.78.2023.08.09.06.03.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Aug 2023 06:03:05 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2023 09:03:04 -0400 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: fatal: unable to read Content-Language: en-US To: "Bjoern A. Zeeb" Cc: git@freebsd.org References: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> <22663d4f-df74-e343-c182-64705ec59f5b@gmail.com> From: Marc Branchaud In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4RLVbZ5Cc2z4Djy X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On 2023-08-08 20:31, Bjoern A. Zeeb wrote: > 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? It depends on the corruption. The SHA1 IDs are used at all levels in Git -- to identify commits, "trees" and "blobs" (files). > I removed the worktree and gc now finishes. Glad you worked it out! M.