Trim commit to the first 10 chars