summaryrefslogtreecommitdiff
path: root/lib/github
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-19 20:31:52 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-24 16:17:52 -0300
commit5691c9b0611645ac3a6f5e32d033d7bafb09d781 (patch)
treec8cb58f943b471d866e44231f3250f43c9b3353e /lib/github
parent782aab1319bdcfbe1634d4b33444e8ce5b57d394 (diff)
downloadgitlab-ce-5691c9b0611645ac3a6f5e32d033d7bafb09d781.tar.gz
Does not remove the GitHub remote
Diffstat (limited to 'lib/github')
-rw-r--r--lib/github/import.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/github/import.rb b/lib/github/import.rb
index 17244d8aea1..17dd6dd0ccf 100644
--- a/lib/github/import.rb
+++ b/lib/github/import.rb
@@ -45,7 +45,6 @@ module Github
project.repository.add_remote('github', "https://{token}@github.com/#{owner}/#{repo}.git")
project.repository.set_remote_as_mirror('github')
project.repository.fetch_remote('github', forced: true)
- project.repository.remove_remote('github')
rescue Gitlab::Shell::Error => e
error(:project, "https://github.com/#{owner}/#{repo}.git", e.message)
end