On Mon, Oct 29, 2012 at 8:56 PM, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > On Sun, Oct 28, 2012 at 10:34 PM, Andreas Schwab <schwab@xxxxxxxxxxxxxx> wrote: >> Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html