Skip to content

Commit 0f1c8fa

Browse files
mjcheethamdscho
authored andcommitted
git.c: permit prune cmd in Scalar repos
Loosen the blocking of the `prune` 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 `prune` to be used in Scalar clones. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent fc23cca commit 0f1c8fa

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
@@ -700,7 +700,7 @@ static struct cmd_struct commands[] = {
700700
{ "pack-refs", cmd_pack_refs, RUN_SETUP },
701701
{ "patch-id", cmd_patch_id, RUN_SETUP_GENTLY | NO_PARSEOPT },
702702
{ "pickaxe", cmd_blame, RUN_SETUP },
703-
{ "prune", cmd_prune, RUN_SETUP | BLOCK_ON_GVFS_REPO},
703+
{ "prune", cmd_prune, RUN_SETUP | BLOCK_ON_VFS_ENABLED },
704704
{ "prune-packed", cmd_prune_packed, RUN_SETUP },
705705
{ "pull", cmd_pull, RUN_SETUP | NEED_WORK_TREE },
706706
{ "push", cmd_push, RUN_SETUP },

0 commit comments

Comments
 (0)