From 5691c9b0611645ac3a6f5e32d033d7bafb09d781 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Wed, 19 Apr 2017 20:31:52 -0300 Subject: [PATCH] Does not remove the GitHub remote --- lib/github/import.rb | 1 - 1 file changed, 1 deletion(-) 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 -- GitLab