Skip to content

Commit

Permalink
rev-list: fix segfault with --{author,committer,grep}
Browse files Browse the repository at this point in the history
We need to save the commit buffer if we're going to match against it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Sep 20, 2006
1 parent bd95fcd commit f69895f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin-rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
revs.diff)
usage(rev_list_usage);

save_commit_buffer = revs.verbose_header;
save_commit_buffer = revs.verbose_header ||
revs.header_filter ||
revs.message_filter;
track_object_refs = 0;
if (bisect_list)
revs.limited = 1;
Expand Down

0 comments on commit f69895f

Please sign in to comment.