]> gitweb.ps.run Git - ps-cgit/commitdiff
Fix segfault in patch view for root commit
authorLars Hjemli <hjemli@gmail.com>
Mon, 17 Mar 2008 22:13:16 +0000 (23:13 +0100)
committerLars Hjemli <hjemli@gmail.com>
Mon, 17 Mar 2008 22:51:47 +0000 (23:51 +0100)
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>

No differences found