abbreviate hash for cherry logs

Unlike for real logs we don't specify a format for cherry logs which
contains "%h".  So we have to tell git to abbreviate the hashes using
`--abbrev'.  (When `--abbrev=<N>` was removed only the `<N>` should
have been removed.)  Close #1191.