Skip to content

Commit 7e7ebca

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 <[email protected]>
1 parent 39c6e27 commit 7e7ebca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ static struct cmd_struct commands[] = {
629629
{ "for-each-ref", cmd_for_each_ref, RUN_SETUP },
630630
{ "for-each-repo", cmd_for_each_repo, RUN_SETUP_GENTLY },
631631
{ "format-patch", cmd_format_patch, RUN_SETUP },
632-
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_GVFS_REPO},
632+
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_VFS_ENABLED },
633633
{ "fsck-objects", cmd_fsck, RUN_SETUP },
634634
{ "fsmonitor--daemon", cmd_fsmonitor__daemon, RUN_SETUP },
635635
{ "gc", cmd_gc, RUN_SETUP },

0 commit comments

Comments
 (0)