From ca963420547b3ab83fe6d2fe351d1eff6e489a18 Mon Sep 17 00:00:00 2001 From: Filip Tepper Date: Thu, 4 Feb 2010 23:09:46 +0800 Subject: [PATCH] grep skips .svn directories --- lib/application_checker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/application_checker.rb b/lib/application_checker.rb index 799fe93..c17f1c5 100644 --- a/lib/application_checker.rb +++ b/lib/application_checker.rb @@ -225,9 +225,9 @@ module Rails value = "" # Specifically double quote for finding 'test_help' command = if double_quote - "grep -r \"#{text}\" #{where}" + "grep -r --exclude=\*.svn\* \"#{text}\" #{where}" else - "grep -r '#{text}' #{where}" + "grep -r --exclude=\*.svn\* '#{text}' #{where}" end Open3.popen3(command) do |stdin, stdout, stderr|