mirror of
https://git.zx2c4.com/cgit
synced 2025-02-03 12:00:00 +00:00
502d57596e
Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely, but cgit_print_commit() forgot to check the case of 0 parents. This fixes it, and adds tests to avoid future regressions. Signed-off-by: Lars Hjemli <hjemli@gmail.com>