Commit 39a86963 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Set mr_diff state to collected if diff is ok

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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