Commit 12c57a7061d55798e77e79c3cfae293b4d773365

Authored by Robert Speicher
1 parent 97ea0412

Change hardcoded base path to use Gitlab settings

Closes #1072
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/tasks/bulk_import.rake
1 IMPORT_DIRECTORY = 'import_projects' 1 IMPORT_DIRECTORY = 'import_projects'
2 -REPOSITORY_DIRECTORY = '/home/git/repositories'  
3 2
4 desc "Imports existing Git repos into new projects from the import_projects folder" 3 desc "Imports existing Git repos into new projects from the import_projects folder"
5 task :import_projects, [:email] => :environment do |t, args| 4 task :import_projects, [:email] => :environment do |t, args|
  5 + REPOSITORY_DIRECTORY = Gitlab.config.git_base_path
  6 +
6 user_email = args.email 7 user_email = args.email
7 repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*") 8 repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*")
8 9