diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index e8a65246..742f8375 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -407,7 +407,7 @@ module Gollum # # Returns an Array with Objects of page name and count of matches def search(query) - args = [{:c => query}, 'master', '--'] + args = [{}, '-i', '-c', query, 'master', '--'] args << '--' << @page_file_dir if @page_file_dir @repo.git.grep(*args).split("\n").map! do |line|