Skip to content

Commit bb62e6f

Browse files
mjcheethamdscho
authored andcommitted
git.c: permit fsck cmd in Scalar repos
Loosen the blocking of the `fsck` command from all "GVFS repos" (those that have `core.gvfs` set) to only those that actually use the virtual file system (VFS for Git only). This allows for `fsck` to be used in Scalar clones. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent c24dfb8 commit bb62e6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎git.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ static struct cmd_struct commands[] = {
656656
{ "for-each-ref", cmd_for_each_ref, RUN_SETUP },
657657
{ "for-each-repo", cmd_for_each_repo, RUN_SETUP_GENTLY },
658658
{ "format-patch", cmd_format_patch, RUN_SETUP },
659-
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_GVFS_REPO},
659+
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_VFS_ENABLED },
660660
{ "fsck-objects", cmd_fsck, RUN_SETUP },
661661
{ "fsmonitor--daemon", cmd_fsmonitor__daemon, RUN_SETUP },
662662
{ "gc", cmd_gc, RUN_SETUP },

0 commit comments

Comments
 (0)