summaryrefslogtreecommitdiff
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
parent5198cd28e039208cb0bcfb867a5ac3996776ea6d (diff)
downloadgitlab-ce-username-password-stripped-from-import-url-fix.tar.gz
Username and password are no longer stripped from import url on importusername-password-stripped-from-import-url-fix
-rw-r--r--app/models/project.rb5
-rw-r--r--changelogs/unreleased/username-password-stripped-from-import-url-fix.yml4
2 files changed, 9 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
diff --git a/changelogs/unreleased/username-password-stripped-from-import-url-fix.yml b/changelogs/unreleased/username-password-stripped-from-import-url-fix.yml
new file mode 100644
index 00000000000..571279d3dc7
--- /dev/null
+++ b/changelogs/unreleased/username-password-stripped-from-import-url-fix.yml
@@ -0,0 +1,4 @@
+---
+title: Username and password are no longer stripped from import url on mirror update
+merge_request: 12725
+author: