Fix to allow running without a TTY

If `git shortlog` has no TTY, it rather helpfully does nothing. We
can fix this by piping output from `git log` into it.