From: Lars Hjemli Date: Mon, 17 Mar 2008 22:13:16 +0000 (+0100) Subject: Fix segfault in patch view for root commit X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/e01f1403b9b501c563b1fe0e0052460a95945528?ds=inline;hp=e01f1403b9b501c563b1fe0e0052460a95945528 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 ---