Normalize sha1 length for commands that don't respect core.abbrev

Some commands (like `git cherry`) don't respect core.abbrev. Fix this by
explicitly passing --abbrev=N (where N=core.abbrev when set).