Commit c3529a1f authored by Kamil Trzciński's avatar Kamil Trzciński

Add IMPORT_DEBUG env variable

parent 64161862
...@@ -17,6 +17,10 @@ namespace :gitlab do ...@@ -17,6 +17,10 @@ namespace :gitlab do
task :import, [:username, :namespace_path, :project_path, :archive_path] => :gitlab_environment do |_t, args| task :import, [:username, :namespace_path, :project_path, :archive_path] => :gitlab_environment do |_t, args|
warn_user_is_not_gitlab warn_user_is_not_gitlab
if ENV['IMPORT_DEBUG'].present?
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
GitlabProjectImport.new( GitlabProjectImport.new(
namespace_path: args.namespace_path, namespace_path: args.namespace_path,
project_path: args.project_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