Skip to content

Commit 070d72d

Browse files
committed
fixup! git.c: add VFS enabled cmd blocking
1 parent 0109d44 commit 070d72d

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
@@ -543,7 +543,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv, struct
543543
if (!help && p->option & BLOCK_ON_GVFS_REPO && gvfs_config_is_set(repo, GVFS_BLOCK_COMMANDS))
544544
die("'git %s' is not supported on a GVFS repo", p->cmd);
545545

546-
if (!help && p->option & BLOCK_ON_VFS_ENABLED && gvfs_config_is_set(GVFS_USE_VIRTUAL_FILESYSTEM))
546+
if (!help && p->option & BLOCK_ON_VFS_ENABLED && gvfs_config_is_set(repo, GVFS_USE_VIRTUAL_FILESYSTEM))
547547
die("'git %s' is not supported when using the virtual file system", p->cmd);
548548

549549
if (run_pre_command_hook(the_repository, argv))

0 commit comments

Comments
 (0)