Skip to content
Browse files

modified pre-commit

  • Loading branch information...
1 parent 9ceea2f commit 46624af12d8ca753f49a27c1ad73eac666e83236 @naoty committed Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pre-commit
View
2 pre-commit
@@ -2,7 +2,7 @@
# check binding.pry
cached_files = `git diff --cached --name-only`
-if cached_files.split($/).all? { |path| File.read(path).include?('binding.pry') }
+if cached_files.split($/).any? { |path| File.read(path).include?('binding.pry') }
puts 'WARNING: binding.pry is found.'
exit 1
end

0 comments on commit 46624af

Please sign in to comment.
Something went wrong with that request. Please try again.