summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-22 17:49:40 +0200
committerRémy Coutable <remy@rymai.me>2017-10-05 10:48:26 +0200
commitbe35346bc7db3430699106a9036baf2d7cf32ba3 (patch)
treefd558075e0267c313eadcb9b32549cc268d44b76 /lib
parent67de21c15bd8bb24667a4d8bfa259406165a909e (diff)
downloadgitlab-ce-be35346bc7db3430699106a9036baf2d7cf32ba3.tar.gz
Set `ref_fetched` to `true` in Github::Import#fetch_pull_requests
Since we fetch all the refs we need at the beginning of the import process, we can safely set this attribute. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r--lib/github/import.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/github/import.rb b/lib/github/import.rb
index 6f525b1c526..4008595a065 100644
--- a/lib/github/import.rb
+++ b/lib/github/import.rb
@@ -151,6 +151,7 @@ module Github
iid: pull_request.iid,
title: pull_request.title,
description: description,
+ ref_fetched: true,
source_project: pull_request.source_project,
source_branch: pull_request.source_branch_name,
source_branch_sha: pull_request.source_branch_sha,