From 0a5e387284d2090172b17e6732cbf6b424768cbd Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Mon, 4 Jul 2016 12:35:56 -0400 Subject: [PATCH] On MRs being imported, commits aren't available yet --- app/models/merge_request_diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb index 60f4b44a5d1..b81ab817dfe 100644 --- a/app/models/merge_request_diff.rb +++ b/app/models/merge_request_diff.rb @@ -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