Project

General

Profile

Patch #27559 ยป master_branch_always_first_in_graph.patch

Maciek Dems, 2017-11-18 09:28

View differences:

redmine/app/helpers/repositories_helper.rb 2017-11-18 09:17:26.865403482 +0100
278 278
        :href  => block_given? ? yield(commit.scmid) : commit.scmid
279 279
      }
280 280
    end
281
    heads.sort! { |head1, head2| head1.to_s <=> head2.to_s }
281
    heads.sort_by! { |head| [if head.is_default then 0 else 1 end, head.to_s] }
282 282
    space = nil  
283 283
    heads.each do |head|
284 284
      if commits_by_scmid.include? head.scmid
    (1-1/1)