Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2023 23:26:25 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        Marc Branchaud <marcnarc@gmail.com>, git@freebsd.org
Subject:   Re: fatal: unable to read <hash>
Message-ID:  <CANCZdfq3_%2Bc04-FOSLw06xBYZw7OuAQH7ccGxX=88XRow628=g@mail.gmail.com>
In-Reply-To: <qo552875-521o-5364-3sor-3qn06p48op49@yvfgf.mnoonqbm.arg>
References:  <orqq0n25-14pq-nn97-o85p-1p6r107s20ns@yvfgf.mnoonqbm.arg> <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> <r5oq8n6o-82o7-0q0o-on18-1nso4r35q24r@yvfgf.mnoonqbm.arg> <22663d4f-df74-e343-c182-64705ec59f5b@gmail.com> <qo552875-521o-5364-3sor-3qn06p48op49@yvfgf.mnoonqbm.arg>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000007ee3b206024e7dac
Content-Type: text/plain; charset="UTF-8"

On Sun, Aug 6, 2023, 11:24 PM Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net>
wrote:

> On Mon, 31 Jul 2023, Marc Branchaud wrote:
>
> >
> > On 2023-07-30 21:21, Bjoern A. Zeeb wrote:
> >>
> >> freebsd-src% find . \! -user bz
> >> freebsd-src% ls -l
> .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7
> >> ls: .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: No such
> file or
> >> directory
> >
> > So it seems like the cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 object is
> really
> > missing and not just inaccessible.  (Note that Git also stores objects
> in
> > .pack files -- see "git help pack-objects" -- but I'm figuring those
> files
> > are also accessible.)
> >
> > To try to figure out what is referring to object
> > cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7, try running
> >       git fsck --name-objects --connectivity-only --no-dangling
>
> %  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 :)
>

I tend to push wip branches to both github and gitlab to help guard against
local failure.

Warner

/bz
>
> --
> Bjoern A. Zeeb                                                     r15:7
>
>

--0000000000007ee3b206024e7dac
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sun, Aug 6, 2023, 11:24 PM Bjoern A. Zeeb &lt;<a hr=
ef=3D"mailto:bzeeb-lists@lists.zabbadoz.net">bzeeb-lists@lists.zabbadoz.net=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 31 Jul 2023=
, Marc Branchaud wrote:<br>
<br>
&gt;<br>
&gt; On 2023-07-30 21:21, Bjoern A. Zeeb wrote:<br>
&gt;&gt; <br>
&gt;&gt; freebsd-src% find . \! -user bz<br>
&gt;&gt; freebsd-src% ls -l .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da=
98f65a7<br>
&gt;&gt; ls: .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: No suc=
h file or <br>
&gt;&gt; directory<br>
&gt;<br>
&gt; So it seems like the cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 object is =
really <br>
&gt; missing and not just inaccessible.=C2=A0 (Note that Git also stores ob=
jects in <br>
&gt; .pack files -- see &quot;git help pack-objects&quot; -- but I&#39;m fi=
guring those files <br>
&gt; are also accessible.)<br>
&gt;<br>
&gt; To try to figure out what is referring to object <br>
&gt; cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7, try running<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0git fsck --name-objects --connectivity-only =
--no-dangling<br>
<br>
%=C2=A0 git fsck --name-objects --connectivity-only --no-dangling<br>
error: b9cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: invalid sha1 pointer in re=
solve-undo of .git/worktrees/bz_maxmodname_D32383/index<br>
Checking connectivity: 4743571, done.<br>
Verifying commits in commit graph: 100% (384308/384308), done.<br>
<br>
The good news upfront;=C2=A0 I could ditch that worktree and branch if that=
<br>
will fix things.=C2=A0 It has follow-up work to the 2021 things but I have<=
br>
a copy of that outside that git tree (I love patch files in port trees :)<b=
r></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">I =
tend to push wip branches to both github and gitlab to help guard against l=
ocal failure.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warn=
er=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"g=
mail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex">
/bz<br>
<br>
-- <br>
Bjoern A. Zeeb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7<br>
<br>
</blockquote></div></div></div>

--0000000000007ee3b206024e7dac--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq3_%2Bc04-FOSLw06xBYZw7OuAQH7ccGxX=88XRow628=g>