Skip to content

Commit 8bdd76a

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 <[email protected]>
1 parent 536f8bd commit 8bdd76a

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
@@ -673,7 +673,7 @@ static struct cmd_struct commands[] = {
673673
{ "pack-refs", cmd_pack_refs, RUN_SETUP },
674674
{ "patch-id", cmd_patch_id, RUN_SETUP_GENTLY | NO_PARSEOPT },
675675
{ "pickaxe", cmd_blame, RUN_SETUP },
676-
{ "prune", cmd_prune, RUN_SETUP | BLOCK_ON_GVFS_REPO},
676+
{ "prune", cmd_prune, RUN_SETUP | BLOCK_ON_VFS_ENABLED },
677677
{ "prune-packed", cmd_prune_packed, RUN_SETUP },
678678
{ "pull", cmd_pull, RUN_SETUP | NEED_WORK_TREE },
679679
{ "push", cmd_push, RUN_SETUP },

0 commit comments

Comments
 (0)