prevent-git-log-wrong-revisions-bug-12505.patch

Jan Kundrát, 2013-01-05 18:01

Download (477 Bytes)

View differences:

app/models/repository/git.rb (working copy)
239 239
    h1 = extra_info || {}
240 240
    h  = h1.dup
241 241
    h["branches"] ||= {}
242
    h['branches'].map{|br, hs| hs['last_scmid']}
242
    h['branches'].map{|br, hs| hs['last_scmid'] if branches.include? br}.compact
243 243
  end
244 244

  
245 245
  def latest_changesets(path,rev,limit=10)