def add(name, value)
      build(name, value).tap do |hook|
        hook.save
      end
    end
def add(name, value)
      build(name, value).tap do |hook|
        hook.save
      end
    end
Adds a new hook to the repository.

 === Example:
  repository.hooks.add('changegroup', 'do_something')