fsck: don't fsck alternates for connectivity-only check
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:05:30 +0000 (17:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2015 17:18:18 +0000 (10:18 -0700)
commitfbe85e73ce425b25c15f0b1f3900a9bf895a9793
tree328b8b82a690fbd4ab6567732a3f7721dbc7dd2c
parent108332c7a04d309cfed872350ab5c8b8e198f944
fsck: don't fsck alternates for connectivity-only check

Commit 02976bf (fsck: introduce `git fsck --connectivity-only`,
2015-06-22) recently gave fsck an option to perform only a
subset of the checks, by skipping the fsck_object_dir()
call. However, it does so only for the local object
directory, and we still do expensive checks on any alternate
repos. We should skip them in this case, too.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c