Does not remove the GitHub remote

parent 782aab13
...@@ -45,7 +45,6 @@ module Github ...@@ -45,7 +45,6 @@ module Github
project.repository.add_remote('github', "https://{token}@github.com/#{owner}/#{repo}.git") project.repository.add_remote('github', "https://{token}@github.com/#{owner}/#{repo}.git")
project.repository.set_remote_as_mirror('github') project.repository.set_remote_as_mirror('github')
project.repository.fetch_remote('github', forced: true) project.repository.fetch_remote('github', forced: true)
project.repository.remove_remote('github')
rescue Gitlab::Shell::Error => e rescue Gitlab::Shell::Error => e
error(:project, "https://github.com/#{owner}/#{repo}.git", e.message) error(:project, "https://github.com/#{owner}/#{repo}.git", e.message)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment