BigW Consortium Gitlab

Set mr_diff state to collected if diff is ok

parent 193a5ed3
......@@ -130,7 +130,10 @@ class MergeRequestDiff < ActiveRecord::Base
end
end
new_diffs = dump_commits(new_diffs) if new_diffs.present?
if new_diffs.present?
new_diffs = dump_commits(new_diffs)
self.state = :collected
end
self.st_diffs = new_diffs
self.save
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment