template-dir/hooks/commit-msg in overcommit-0.23.0 vs template-dir/hooks/commit-msg in overcommit-0.24.0
- old
+ new
@@ -41,12 +41,12 @@
installer = Overcommit::Installer.new(logger)
if installer.run(Overcommit::Utils.repo_root, action: :update)
exec($0, *ARGV) # Execute the updated hook with all original arguments
end
- config = Overcommit::ConfigurationLoader.load_repo_config
+ config = Overcommit::ConfigurationLoader.new(logger).load_repo_config
- context = Overcommit::HookContext.create(hook_type, config, ARGV)
+ context = Overcommit::HookContext.create(hook_type, config, ARGV, STDIN)
config.apply_environment!(context, ENV)
printer = Overcommit::Printer.new(logger, context)
runner = Overcommit::HookRunner.new(config, logger, context, printer)