bin/pre-commit in pre-commit-0.1.18 vs bin/pre-commit in pre-commit-0.1.19
- old
+ new
@@ -1,8 +1,10 @@
-#!/usr/bin/env ruby -rrubygems
+#!/usr/bin/env ruby
template = <<EOS
-#!/usr/bin/env ruby -rrubygems
+#!/usr/bin/env ruby
+
+require 'rubygems'
require 'pre-commit'
exit_status = PreCommit.checks_to_run.inject(true) do |acc, cmd|
acc = cmd.call && acc
end