mirror of
https://git.zx2c4.com/cgit
synced 2025-02-16 18:26:42 +00:00
The code for patch view assumed the current commit would always have a parent, which made cgit segfault when that wasn't the case. This fixes the bug and adds a test-script for patch view which includes a test for the inital commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>