Fixed problem in log_hook (see 73c32bb4a8)

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