diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
---|---|---|
committer | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
commit | 67ccc8b52aceebea9c0cb22b3277daf0b467c78e (patch) | |
tree | 6139a7674fe0f9d70a0af51c383fd72aa91cc54c /lib/tasks/gitlab/import.rake | |
parent | 493b5ff011d5788f669adabf978a40b49b8cf6a3 (diff) |
Replace old hashes with new 1.9 ruby hashes (rebase)
Diffstat (limited to 'lib/tasks/gitlab/import.rake')
-rw-r--r-- | lib/tasks/gitlab/import.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake index bddbd7ef855..acf6abedd19 100644 --- a/lib/tasks/gitlab/import.rake +++ b/lib/tasks/gitlab/import.rake @@ -10,7 +10,7 @@ namespace :gitlab do # * existing projects will be skipped # desc "GITLAB | Import bare repositories from git_host -> base_path into GitLab project instance" - task :repos => :environment do + task repos: :environment do git_base_path = Gitlab.config.gitlab_shell.repos_path repos_to_import = Dir.glob(git_base_path + '/*') @@ -40,7 +40,7 @@ namespace :gitlab do user = User.admins.first project_params = { - :name => path, + name: path, } project = Projects::CreateContext.new(user, project_params).execute |