Set mr_diff state to collected if diff is ok
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
193a5ed3c3
commit
39a86963e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue