Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove skip-erb-files option, unneeded since erb checking is no longe…

…r broken.
  • Loading branch information...
commit 548678cf2f08000483c7431cdf4bab493e5e3f06 1 parent 9d185fb
@benzado benzado authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 pre-commit
View
5 pre-commit
@@ -14,9 +14,6 @@ include Open3
# Set this to true if you want warnings to stop your commit
stop_on_warnings = (`git config --bool hooks.stop-on-warnings` != "false\n")
-# Set this to true if you'd like to skip erb files
-skip_erb_files = (`git config --bool hooks.skip-erb-files` == "true\n")
-
def cmd_path(cmd)
p = `which #{cmd}`.strip
p if p.length > 0
@@ -53,7 +50,7 @@ end
problematic_files = changed_ruby_files.inject([]) do |problematic_files, file|
if File.readable? file
cmd = if file =~ /\.erb\z/
- check_erb_cmd(file) unless skip_erb_files
+ check_erb_cmd(file)
else
check_rb_cmd(file)
end
Please sign in to comment.
Something went wrong with that request. Please try again.