diff --git a/builtin/log.c b/builtin/log.c index 368f6580a6eb88..93e773e0b31670 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -786,6 +786,8 @@ int cmd_show(int argc, 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);