commit | a8787c5c1c51f4bdb610526175442a23eea7c467 | [log] [tgz] |
---|---|---|
author | Tzvetan Mikov <tmikov@gmail.com> | Tue Nov 04 12:33:37 2014 -0800 |
committer | Junio C Hamano <gitster@pobox.com> | Tue Nov 04 12:47:35 2014 -0800 |
tree | 3a00579a034a4231109d36ecdfc6432742d22327 | |
parent | 1762224ddb599ab14ca26cedafec39dee9b92fe5 [diff] |
line-log: fix crash when --first-parent is used line-log tries to access all parents of a commit, but only the first parent has been loaded if "--first-parent" is specified, resulting in a crash. Limit the number of parents to one if "--first-parent" is specified. Reported-by: Eric N. Vander Weele <ericvw@gmail.com> Signed-off-by: Tzvetan Mikov <tmikov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>