Skip to content

Commit

Permalink
Change hardcoded base path to use Gitlab settings
Browse files Browse the repository at this point in the history
Closes #1072
  • Loading branch information
rspeicher committed Sep 4, 2012
1 parent 97ea041 commit 12c57a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/bulk_import.rake
Original file line number Diff line number Diff line change
@@ -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}/*")

Expand Down

0 comments on commit 12c57a7

Please sign in to comment.