Skip to content

Commit 12c57a7

Browse files
committed
Change hardcoded base path to use Gitlab settings
Closes #1072
1 parent 97ea041 commit 12c57a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/bulk_import.rake

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
IMPORT_DIRECTORY = 'import_projects'
2-
REPOSITORY_DIRECTORY = '/home/git/repositories'
32

43
desc "Imports existing Git repos into new projects from the import_projects folder"
54
task :import_projects, [:email] => :environment do |t, args|
5+
REPOSITORY_DIRECTORY = Gitlab.config.git_base_path
6+
67
user_email = args.email
78
repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*")
89

0 commit comments

Comments
 (0)