diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-11-05 17:51:08 +0100 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-11-05 17:51:49 +0100 |
commit | e4a38e447169069f3d5042d3341ceb4bdc51bf1b (patch) | |
tree | 670d9e03ffed0001511c954250fe5ac43544c136 /lib/tasks/gitlab/shell.rake | |
parent | f9814bf28831aeef746cfdc35431c8de45ff7677 (diff) | |
download | gitlab-ce-e4a38e447169069f3d5042d3341ceb4bdc51bf1b.tar.gz |
Factor using Repository#path_to_repo
Diffstat (limited to 'lib/tasks/gitlab/shell.rake')
-rw-r--r-- | lib/tasks/gitlab/shell.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake index 55f338add6a..6b8f9e377fe 100644 --- a/lib/tasks/gitlab/shell.rake +++ b/lib/tasks/gitlab/shell.rake @@ -76,7 +76,7 @@ namespace :gitlab do desc "GITLAB | Build missing projects" task build_missing_projects: :environment do Project.find_each(batch_size: 1000) do |project| - path_to_repo = File.join(Gitlab.config.gitlab_shell.repos_path, "#{project.path_with_namespace}.git") + path_to_repo = project.repository.path_to_repo if File.exists?(path_to_repo) print '-' else |