Set mr_diff state to collected if diff is ok

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-01-22 15:30:14 +02:00
parent 193a5ed3c3
commit 39a86963e9
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 4 additions and 1 deletions

View File

@ -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