diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-18 00:22:33 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-04-18 00:22:33 +0000 |
commit | bf0717802f9bea5222f0149ebc7a843664a27ef7 (patch) | |
tree | b5175c2cdbd730b13c182905eb8074f0552edfd4 /lib | |
parent | dbcfbd68b6b2b4c62ba5381317296b23002e3067 (diff) | |
download | gitlab-ce-bf0717802f9bea5222f0149ebc7a843664a27ef7.tar.gz |
Does not remove the GitHub remote when importing from GitHub
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/import.rake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index 15131fbf755..a9dad6a1bf0 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -52,7 +52,6 @@ class NewImporter < ::Gitlab::GithubImport::Importer project.repository.add_remote(project.import_type, project.import_url) project.repository.set_remote_as_mirror(project.import_type) project.repository.fetch_remote(project.import_type, forced: true) - project.repository.remove_remote(project.import_type) rescue => e # Expire cache to prevent scenarios such as: # 1. First import failed, but the repo was imported successfully, so +exists?+ returns true |