Commit 12c57a7061d55798e77e79c3cfae293b4d773365
1 parent
97ea0412
Exists in
master
and in
4 other branches
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 | 1 | IMPORT_DIRECTORY = 'import_projects' |
2 | -REPOSITORY_DIRECTORY = '/home/git/repositories' | |
3 | 2 | |
4 | 3 | desc "Imports existing Git repos into new projects from the import_projects folder" |
5 | 4 | task :import_projects, [:email] => :environment do |t, args| |
5 | + REPOSITORY_DIRECTORY = Gitlab.config.git_base_path | |
6 | + | |
6 | 7 | user_email = args.email |
7 | 8 | repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*") |
8 | 9 | ... | ... |