removing hook from repository