Change hardcoded base path to use Gitlab settings

Closes #1072
3-1-stable
Robert Speicher 2012-09-04 05:03:31 -04:00
parent 97ea041246
commit 12c57a7061
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
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}/*")