Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-11-15 18:46:08 +0300
committerDouwe Maan <douwe@selenight.nl>2017-11-23 18:59:50 +0300
commit0e6beaf50c9233ca03083691856dea2883f71773 (patch)
tree44e8f6d85ab86f747cf5ec88c42a85782fb33a8e /lib/gitlab/github_import.rb
parent7084c096732dcd041fbdcd22ba17233941683c04 (diff)
Clean up repository fetch and mirror methods
Diffstat (limited to 'lib/gitlab/github_import.rb')
-rw-r--r--lib/gitlab/github_import.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/github_import.rb b/lib/gitlab/github_import.rb
index d2ae4c1255e..427dab82e19 100644
--- a/lib/gitlab/github_import.rb
+++ b/lib/gitlab/github_import.rb
@@ -1,5 +1,9 @@
module Gitlab
module GithubImport
+ def self.fetch_refs
+ [:heads, :tags, '+refs/pull/*/head:refs/merge-requests/*/head']
+ end
+
def self.new_client_for(project, token: nil, parallel: true)
token_to_use = token || project.import_data&.credentials&.fetch(:user)