diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 6acb1006..f022e34a 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -129,8 +129,8 @@ module Precious end get '/search' do - @q = params[:q] - @search_command = "cd #{$path} && git grep -c '#{@q}' master" + @query = params[:q] + @search_command = "cd #{$path} && git grep -c '#{@query}' master" @results = `#{@search_command}` mustache :search end diff --git a/lib/gollum/frontend/templates/search.mustache b/lib/gollum/frontend/templates/search.mustache index b742ecbb..f6a413fb 100644 --- a/lib/gollum/frontend/templates/search.mustache +++ b/lib/gollum/frontend/templates/search.mustache @@ -5,7 +5,7 @@ Home | -