We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97ea041 commit 12c57a7Copy full SHA for 12c57a7
lib/tasks/bulk_import.rake
@@ -1,8 +1,9 @@
1
IMPORT_DIRECTORY = 'import_projects'
2
-REPOSITORY_DIRECTORY = '/home/git/repositories'
3
4
desc "Imports existing Git repos into new projects from the import_projects folder"
5
task :import_projects, [:email] => :environment do |t, args|
+ REPOSITORY_DIRECTORY = Gitlab.config.git_base_path
6
+
7
user_email = args.email
8
repos_to_import = Dir.glob("#{IMPORT_DIRECTORY}/*")
9
0 commit comments