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
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-25 16:34:41 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-25 16:34:41 +0300
commit75e1682c40d95ffb74be6ae06c6a88c61e58fca4 (patch)
treef28fa540db320ebd769101dddc41ea8bca2af906 /lib
parent4e045cd5aa0faf6f6279e8d477a15c9072f679b6 (diff)
parentd0336ae88f9ed7bfee1f74d8945e4f8770d0b9b0 (diff)
Merge branch 'sh-fix-github-import-creator' into 'master'
GitHub importer: Use the project creator to create branches from forks Closes #59396 See merge request gitlab-org/gitlab-ce!26510
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/github_import/importer/pull_request_importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/pull_request_importer.rb b/lib/gitlab/github_import/importer/pull_request_importer.rb
index 72451e5e01e..1b293ddc7c7 100644
--- a/lib/gitlab/github_import/importer/pull_request_importer.rb
+++ b/lib/gitlab/github_import/importer/pull_request_importer.rb
@@ -89,7 +89,7 @@ module Gitlab
return if project.repository.branch_exists?(source_branch)
- project.repository.add_branch(project.owner, source_branch, pull_request.source_branch_sha)
+ project.repository.add_branch(project.creator, source_branch, pull_request.source_branch_sha)
rescue Gitlab::Git::CommandError => e
Gitlab::Sentry.track_acceptable_exception(e,
extra: {