summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-04 05:03:31 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-04 05:05:56 -0400
commit12c57a7061d55798e77e79c3cfae293b4d773365 (patch)
treeb8d76e499415143d92250bb4008bbe254420b4e4
parent97ea04124693c271e060e4697d2d7cfbaadbae4a (diff)
downloadgitlab-ce-12c57a7061d55798e77e79c3cfae293b4d773365.tar.gz
Change hardcoded base path to use Gitlab settings
Closes #1072
-rw-r--r--lib/tasks/bulk_import.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/bulk_import.rake b/lib/tasks/bulk_import.rake
index 607250f1770..5941eadb970 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}/*")