]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: simplify ".git" check
authorJeff King <peff@peff.net>
Sun, 13 May 2018 16:35:37 +0000 (12:35 -0400)
committerJeff King <peff@peff.net>
Tue, 22 May 2018 03:55:12 +0000 (23:55 -0400)
commited9c3220621d634d543bc4dd998d12167dfc57d4
tree50393155b7372b6eb048e3b91ee708623ca3da69
parentdb5a58c1bda5b20169b9958af1e8b05ddd178b01
fsck: simplify ".git" check

There's no need for us to manually check for ".git"; it's a
subset of the other filesystem-specific tests. Dropping it
makes our code slightly shorter. More importantly, the
existing code may make a reader wonder why ".GIT" is not
covered here, and whether that is a bug (it isn't, as it's
also covered in the filesystem-specific tests).

Signed-off-by: Jeff King <peff@peff.net>
fsck.c