fsck: call fsck_finish() after fscking objects
commit1995b5e03e1cc97116be58cdc0502d4a23547856
authorJeff King <peff@peff.net>
Wed, 2 May 2018 21:20:35 +0000 (2 17:20 -0400)
committerJeff King <peff@peff.net>
Tue, 22 May 2018 03:55:12 +0000 (21 23:55 -0400)
tree1d482dcd90f29be2e5758dc3aa1c5dc4eec479d3
parented8b10f631c9a71df3351d46187bf7f3fa4f9b7e
fsck: call fsck_finish() after fscking objects

Now that the internal fsck code is capable of checking
.gitmodules files, we just need to teach its callers to use
the "finish" function to check any queued objects.

With this, we can now catch the malicious case in t7415 with
git-fsck.

Signed-off-by: Jeff King <peff@peff.net>
builtin/fsck.c
t/t7415-submodule-names.sh