def load_repo_config
      overcommit_yml = File.join(Overcommit::Utils.repo_root,
                                 Overcommit::CONFIG_FILE_NAME)

      if File.exist?(overcommit_yml)
        load_file(overcommit_yml)
      else
        self.class.default_configuration
      end
    end
def load_repo_config
      overcommit_yml = File.join(Overcommit::Utils.repo_root,
                                 Overcommit::CONFIG_FILE_NAME)

      if File.exist?(overcommit_yml)
        load_file(overcommit_yml)
      else
        self.class.default_configuration
      end
    end
Create a configuration loader which writes warnings/errors to the given
 {Overcommit::Logger} instance.

 @param logger [Overcommit::Logger]
 @param options [Hash]
 @option verify [Boolean] whether to verify signatures
 Loads and returns the configuration for the repository we're running in.

 @return [Overcommit::Configuration]