git.patch

Proposed patch. - John Kubiatowicz, 2011-10-26 08:03

Download (947 Bytes)

View differences:

app/models/repository/git.rb (working copy)
1
# -*- coding: utf-8 -*-
1 2
# Redmine - project management software
2 3
# Copyright (C) 2006-2011  Jean-Philippe Lang
3 4
# Copyright (C) 2007  Patrick Aljord patcito@Ĺ‹mail.com
......
123 124
    if changesets.count == 0
124 125
      h["db_consistent"]["ordering"] = 1
125 126
      merge_extra_info(h)
126
      self.save
127 127
    elsif ! h["db_consistent"].has_key?("ordering")
128 128
      h["db_consistent"]["ordering"] = 0
129 129
      merge_extra_info(h)
130
      self.save
131 130
    end
132 131
    scm_brs.each do |br1|
133 132
      br = br1.to_s
......
142 141
          end
143 142
          h["branches"][br]["last_scmid"] = rev.scmid
144 143
          merge_extra_info(h)
145
          self.save
146 144
        end
147 145
      end
148 146
    end
147
    self.save
149 148
  end
150 149

  
151 150
  def save_revision(rev)