Use `rev-parse` instead of `log -1`
Use Repository#hooks_dir in Hook#path
Use Tape#git in Tape#sha