Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Scope search to the active branch

  • Loading branch information...
commit fb7a785963ed20fdcd2fc067c016e1c17a198d84 1 parent 8782859
authored June 13, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  CommitsController.rb
6  CommitsController.rb
@@ -229,11 +229,11 @@ def search_commits(category, query)
229 229
       repo = @application_controller.repo
230 230
       case category.downcase.to_sym
231 231
         when :message
232  
-         @commits = Grit::Commit.find_all(repo, nil, {:grep => query, :i => true})
  232
+         @commits = Grit::Commit.find_all(repo, @branch, {:grep => query, :i => true})
233 233
         when :committer
234  
-         @commits = Grit::Commit.find_all(repo, nil, {:committer => query})
  234
+         @commits = Grit::Commit.find_all(repo, @branch, {:committer => query})
235 235
         when :author
236  
-         @commits = Grit::Commit.find_all(repo, nil, {:author => query})
  236
+         @commits = Grit::Commit.find_all(repo, @branch, {:author => query})
237 237
         when :sha1
238 238
           @commits = [repo.commit(query)]
239 239
         when :path

0 notes on commit fb7a785

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