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:
Diffstat (limited to 'lib/gitlab/legacy_github_import/project_creator.rb')
-rw-r--r--lib/gitlab/legacy_github_import/project_creator.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/legacy_github_import/project_creator.rb b/lib/gitlab/legacy_github_import/project_creator.rb
index c54325bcdf5..01e04fa9c81 100644
--- a/lib/gitlab/legacy_github_import/project_creator.rb
+++ b/lib/gitlab/legacy_github_import/project_creator.rb
@@ -18,11 +18,11 @@ module Gitlab
attrs = {
name: name,
path: name,
- description: repo.description,
+ description: repo[:description],
namespace_id: namespace.id,
visibility_level: visibility_level,
import_type: type,
- import_source: repo.full_name,
+ import_source: repo[:full_name],
import_url: import_url,
skip_wiki: skip_wiki
}.merge!(extra_attrs)
@@ -33,11 +33,11 @@ module Gitlab
private
def import_url
- repo.clone_url.sub('://', "://#{session_data[:github_access_token]}@")
+ repo[:clone_url].sub('://', "://#{session_data[:github_access_token]}@")
end
def visibility_level
- visibility_level = repo.private ? Gitlab::VisibilityLevel::PRIVATE : @namespace.visibility_level
+ visibility_level = repo[:private] ? Gitlab::VisibilityLevel::PRIVATE : @namespace.visibility_level
visibility_level = Gitlab::CurrentSettings.default_project_visibility if Gitlab::CurrentSettings.restricted_visibility_levels.include?(visibility_level)
visibility_level
@@ -49,7 +49,7 @@ module Gitlab
# repository already exist.
#
def skip_wiki
- repo.has_wiki?
+ repo[:has_wiki]
end
end
end