Commit 12c57a70 authored by Robert Speicher's avatar Robert Speicher

Change hardcoded base path to use Gitlab settings

Closes #1072
parent 97ea0412
IMPORT_DIRECTORY = 'import_projects'
REPOSITORY_DIRECTORY = '/home/git/repositories'
desc "Imports existing Git repos into new projects from the import_projects folder"
task :import_projects, [:email] => :environment do |t, args|
REPOSITORY_DIRECTORY = Gitlab.config.git_base_path
user_email = args.email
repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*")
......
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