<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I recently upgraded a Kallithea server to 0.6.3, and I was
running into an issue where trying to view the landing page for
one specific repository, but not others, was crashing.</p>
<p>I tracked this down to the changelog_table.html template. It runs
<tt>message_lines = cs.message.splitlines()</tt> and tries to show
the first line of the message by rendering <tt>message_lines[0]</tt>.
However, if the commit message is completely empty, <tt>message_lines</tt>
will be too, so trying to access <tt>message_lines[0]</tt> raises
an uncaught IndexError.</p>
<p>Attached is a patch that does the bare minimum to avoid the
crash, by forcing <tt>message_lines</tt> to contain an empty
string in this case. It might be nice to do something nicer like
render a dedicated, localized message in this case. But hopefully
this helps identify the issue.</p>
<p>Hope this helps. If you need any additional information, please
let me know.</p>
<p>Thanks,<br>
</p>
<div class="moz-signature">-- <br>
Brett Smith</div>
</body>
</html>