Re: Removing unreachable objects in the presence of broken links?
- From
Geert Uytterhoeven <geert@linux-m68k.org>
- Date
- Nov 11, 2012, 11:15 UTC
- Message-ID
- <CAMuHMdXPg-GCnkSCZmeA8HKA4hback7aUNpK5AigKKe2z+2uRA@mail.gmail.com>
- In-Reply-To
- <CAMuHMdU5ZNFs-_TeUE4ntzCCOp85DSOyWMrjJ=yV76MSmjfxDQ@mail.gmail.com>
On Mon, Oct 29, 2012 at 8:56 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
Show 11 quoted lines
> On Sun, Oct 28, 2012 at 10:34 PM, Andreas Schwab <schwab@linux-m68k.org> wrote: >> Geert Uytterhoeven <geert@linux-m68k.org> writes: >> >>> Is there a way to force removing unreachable objects in the presence of broken >>> links? >> >> Does it help to forcibly expire the reflogs? > > You mean "git reflog expire --all --expire=0"? > > After that the reflog is empty, but "git gc" still fails.
Although "git stash list" didn't show anything, .git/refs/stash still contained one hash.
After running "git stash clear", "git gc" succeeded, and the object pointed to by .git/refs/stash before was gone.
Gr{oetje,eeting}s,Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds