Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Remove skip-erb-files option, unneeded since erb checking is no longe…
Browse files Browse the repository at this point in the history
…r broken.
  • Loading branch information
benzado committed May 3, 2012
1 parent 9d185fb commit 548678c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pre-commit
Expand Up @@ -14,9 +14,6 @@ include Open3
# Set this to true if you want warnings to stop your commit # Set this to true if you want warnings to stop your commit
stop_on_warnings = (`git config --bool hooks.stop-on-warnings` != "false\n") 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) def cmd_path(cmd)
p = `which #{cmd}`.strip p = `which #{cmd}`.strip
p if p.length > 0 p if p.length > 0
Expand Down Expand Up @@ -53,7 +50,7 @@ end
problematic_files = changed_ruby_files.inject([]) do |problematic_files, file| problematic_files = changed_ruby_files.inject([]) do |problematic_files, file|
if File.readable? file if File.readable? file
cmd = if file =~ /\.erb\z/ cmd = if file =~ /\.erb\z/
check_erb_cmd(file) unless skip_erb_files check_erb_cmd(file)
else else
check_rb_cmd(file) check_rb_cmd(file)
end end
Expand Down

0 comments on commit 548678c

Please sign in to comment.