# Re: bug in "git fsck"?

- From: Junio C Hamano \<hidden\>
- Date: 2021-07-05 19:52:13 
- List: git
- Page: https://ratatoskr.run/git/2021/07/7894221
- Thread: https://ratatoskr.run/git/2021/07/7894221/t.md

```text
René Scharfe [ref] writes:

> True, but the scenario described on StackOverflow is a bit different.
> Commits were filtered out, and branches still pointing to them cannot
> be deleted with "git branch -d" or "git branch -D".  Git fsck only
> reports them.

I have a feeling that the "filtering out" process shouldn't leave
these stale branches hanging around in the first place (in other
words, it's the job of such a tool that deliberately "corrupts" the
repository to remove these branches, so that the user won't have to).

But I agree that it should be easy to recover from such a deliberate
repository corruption.
```
