diff --git a/builtin/log.c b/builtin/log.c index 36769bab3b69a9..d376aea3d493b4 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -789,6 +789,8 @@ int cmd_show(int argc, const char **argv, const char *prefix) opt.def = "HEAD"; opt.tweak = show_setup_revisions_tweak; cmd_log_init(argc, argv, prefix, &rev, &opt, &cfg); + if (rev.no_walk) + rev.prune = 0; if (!rev.no_walk) { ret = cmd_log_walk(&rev);