Date: Wed, 2 Aug 2023 15:43:09 -0600 From: Warner Losh <imp@bsdimp.com> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: git@freebsd.org Subject: Re: fatal: unable to read <hash> Message-ID: <CANCZdfr5PyZdFnJ_Q199yA=AaU-9gAiQa2nHR82bKkS40H%2Bsrg@mail.gmail.com> In-Reply-To: <904p9s0n-6641-7494-q259-515pp4q313q1@yvfgf.mnoonqbm.arg> References: <orqq0n25-14pq-nn97-o85p-1p6r107s20ns@yvfgf.mnoonqbm.arg> <CANCZdfrZECPrUqk5VLNifRTdo3mr=_SxjTOvGBUAJcTHgPugaQ@mail.gmail.com> <904p9s0n-6641-7494-q259-515pp4q313q1@yvfgf.mnoonqbm.arg>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000065fdec0601f78d5b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 30, 2023 at 7:23=E2=80=AFPM Bjoern A. Zeeb < bzeeb-lists@lists.zabbadoz.net> wrote: > On Tue, 25 Jul 2023, Warner Losh wrote: > > > Have you tried cloning the repo? > > % git clone freebsd-src freebsd-src.x > Cloning into 'freebsd-src.x'... > done. > Updating files: 100% (94839/94839), done. > % > > Seems to run through without trouble like that. Are you suggesting that > I might just change my .git/config on the new one to point in the right > diretions again and use the cloned one (also re-establishing the > worktrees)? > I'm saying that if Marc and you can't work out why things are bad, cloning should preserve all the branches and you won't lose any work. You could script recreating the work trees, though that's a lot of disk and gets tricky if you like to stash changes... Worst case, though, is you'd have to clone the upstream repo and the fetch branches one at a time until you found the one causing the error (well, you'd fetch the rest, but then you'd know the problem child at least). I suspect it's a dangling reference somewhere that didn't get GC'd quite right and that it's an edge case in cleanup, but fixing botched repos is way abov= e my pay grade. Good luck and hope it all works out. And if there's anything I can do to help further, please let me know. Warner --00000000000065fdec0601f78d5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul 30, 2023 at 7:23=E2=80=AF= PM Bjoern A. Zeeb <<a href=3D"mailto:bzeeb-lists@lists.zabbadoz.net">bze= eb-lists@lists.zabbadoz.net</a>> wrote:<br></div><blockquote class=3D"gm= ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,= 204,204);padding-left:1ex">On Tue, 25 Jul 2023, Warner Losh wrote:<br> <br> > Have you tried cloning the repo?<br> <br> % git clone freebsd-src freebsd-src.x<br> Cloning into 'freebsd-src.x'...<br> done.<br> Updating files: 100% (94839/94839), done.<br> %<br> <br> Seems to run through without trouble like that.=C2=A0 Are you suggesting th= at<br> I might just change my .git/config on the new one to point in the right<br> diretions again and use the cloned one (also re-establishing the<br> worktrees)?<br></blockquote><div><br></div><div>I'm saying that if Marc= and you can't work out why things are bad, cloning</div><div>should pr= eserve all the branches and you won't lose any work. You could</div><di= v>script recreating the work trees, though that's a lot of disk and get= s tricky</div><div>if you like to stash changes...</div><div><br></div><div= >Worst case, though, is you'd have to clone the upstream repo and the f= etch</div><div>branches one at a time until=C2=A0you found the one causing = the error (well, you'd</div><div>fetch the rest, but then you'd kno= w the problem child at least).</div><div><br></div><div>I suspect it's = a dangling reference somewhere that didn't get GC'd quite right</di= v><div>and that it's an edge case in cleanup, but fixing botched repos = is way above</div><div>my pay grade.</div><div><br></div><div>Good luck and= hope it all works out. And if there's anything I can do to help</div><= div>further, please let me know.</div><div><br></div><div>Warner</div></div= ></div> --00000000000065fdec0601f78d5b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfr5PyZdFnJ_Q199yA=AaU-9gAiQa2nHR82bKkS40H%2Bsrg>