Truncate commit id to 6 chars.