On MRs being imported, commits aren't available yet

This commit is contained in:
Douwe Maan 2016-07-04 12:35:56 -04:00
parent d7e8479ee8
commit 0a5e387284

View file

@ -24,7 +24,7 @@ class MergeRequestDiff < ActiveRecord::Base
serialize :st_diffs
after_create :reload_content, unless: :importing?
after_save :keep_around_commits
after_save :keep_around_commits, unless: :importing?
def reload_content
reload_commits