Diff options
authorLars Hjemli <hjemli@gmail.com>
committerLars Hjemli <hjemli@gmail.com>
commit
parent
tree
download
Fix segfault in patch view for root commit
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>
Diffstat (limited to '')
-rwxr-xr-xtests/t0108-patch.sh37
-rw-r--r--ui-patch.c6
2 files changed, 42 insertions, 1 deletion