grep skips .svn directories
This commit is contained in:
parent
a5ebcb32ff
commit
ca96342054
|
@ -225,9 +225,9 @@ module Rails
|
||||||
value = ""
|
value = ""
|
||||||
# Specifically double quote for finding 'test_help'
|
# Specifically double quote for finding 'test_help'
|
||||||
command = if double_quote
|
command = if double_quote
|
||||||
"grep -r \"#{text}\" #{where}"
|
"grep -r --exclude=\*.svn\* \"#{text}\" #{where}"
|
||||||
else
|
else
|
||||||
"grep -r '#{text}' #{where}"
|
"grep -r --exclude=\*.svn\* '#{text}' #{where}"
|
||||||
end
|
end
|
||||||
|
|
||||||
Open3.popen3(command) do |stdin, stdout, stderr|
|
Open3.popen3(command) do |stdin, stdout, stderr|
|
||||||
|
|
Loading…
Reference in New Issue