Patch Set 1:

I am not sure if this is a good solution.
But we should somehow guarantee that getShortMessage returns a single line even for commits with a "corrupted" commit message. Otherwise clients of getShortMessage get problems (see related bug).