Index: app/models/repository/git.rb =================================================================== --- app/models/repository/git.rb (revision 11108) +++ app/models/repository/git.rb (working copy) @@ -239,7 +239,7 @@ h1 = extra_info || {} h = h1.dup h["branches"] ||= {} - h['branches'].map{|br, hs| hs['last_scmid']} + h['branches'].map{|br, hs| hs['last_scmid'] if branches.include? br}.compact end def latest_changesets(path,rev,limit=10)