diff --git a/lib/tasks/bulk_import.rake b/lib/tasks/bulk_import.rake
index 607250f177018644975c0d0070042452ac304c0c..5941eadb970b096b365cba794bfb4d7e70332c55 100644
--- a/lib/tasks/bulk_import.rake
+++ b/lib/tasks/bulk_import.rake
@@ -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}/*")