diff --git a/builtin/log.c b/builtin/log.c index db1808d7c13dfd..f61258d8e0e86e 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -760,6 +760,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); + if (rev.no_walk) + rev.prune = 0; if (!rev.no_walk) return cmd_log_deinit(cmd_log_walk(&rev), &rev);