Work with hooks in a Git::Repository