Skip to content

Commit 536f8bd

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 1d4c063 commit 536f8bd

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
@@ -630,7 +630,7 @@ static struct cmd_struct commands[] = {
630630
{ "for-each-ref", cmd_for_each_ref, RUN_SETUP },
631631
{ "for-each-repo", cmd_for_each_repo, RUN_SETUP_GENTLY },
632632
{ "format-patch", cmd_format_patch, RUN_SETUP },
633-
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_GVFS_REPO},
633+
{ "fsck", cmd_fsck, RUN_SETUP | BLOCK_ON_VFS_ENABLED },
634634
{ "fsck-objects", cmd_fsck, RUN_SETUP },
635635
{ "fsmonitor--daemon", cmd_fsmonitor__daemon, RUN_SETUP },
636636
{ "gc", cmd_gc, RUN_SETUP },

0 commit comments

Comments
 (0)