Skip to content

Commit

Permalink
modified output message at pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
naoty committed Jun 25, 2012
1 parent 46624af commit 64f8316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# check binding.pry
cached_files = `git diff --cached --name-only`
if cached_files.split($/).any? { |path| File.read(path).include?('binding.pry') }
puts 'WARNING: binding.pry is found.'
puts 'ERROR: binding.pry is found.'
exit 1
end

0 comments on commit 64f8316

Please sign in to comment.