Commit c8729a1b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'allow-to-run-import-with-debug' into 'master'

Add IMPORT_DEBUG env variable

See merge request gitlab-org/gitlab!21268
parents 5eae152e c3529a1f
......@@ -17,6 +17,10 @@ namespace :gitlab do
task :import, [:username, :namespace_path, :project_path, :archive_path] => :gitlab_environment do |_t, args|
warn_user_is_not_gitlab
if ENV['IMPORT_DEBUG'].present?
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
GitlabProjectImport.new(
namespace_path: args.namespace_path,
project_path: args.project_path,
......
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