Fixed problem in log_hook

Solved the problem mentioned 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! :)