Fixed problem in log_hook (see 62e3fa)

Solved the problem mentioned in 62e3fa by swiching from
    git show $1 > /dev/null
to
    git log -n 1 $1 > /dev/null

I don't know, why the former fails on Travis CI, but it works
now! :)