A fresh repo won't have any commits, so don't blow up.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>