summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-07 23:07:08 +0200
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-07-07 23:10:01 +0200
commitf8c0ccb1a15f12048fabc99d63e3436732bf4cd9 (patch)
tree5e7bf6ebe596a42c35494e3a9b5be22235706a07 /app/models
parent5198cd28e039208cb0bcfb867a5ac3996776ea6d (diff)
downloadgitlab-ce-f8c0ccb1a15f12048fabc99d63e3436732bf4cd9.tar.gz
Username and password are no longer stripped from import url on importusername-password-stripped-from-import-url-fix
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 74c15d2508b..d0e02e4e585 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -536,6 +536,11 @@ class Project < ActiveRecord::Base
ProjectCacheWorker.perform_async(self.id)
end
+ remove_import_data
+ end
+
+ # This method is overriden in EE::Project model
+ def remove_import_data
import_data&.destroy
end