Commit 360bd899 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3583 from...

Merge pull request #3583 from karlhungus/update_dev_setup_to_not_use_hard_coded_path_to_gitlab_shell

Updated setup to reference the gitlab-shell var
parents bd405791 f210a5d8
gitlab_shell_path = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
root = Gitlab.config.gitlab_shell.repos_path root = Gitlab.config.gitlab_shell.repos_path
projects = [ projects = [
...@@ -17,8 +18,7 @@ projects.each do |project| ...@@ -17,8 +18,7 @@ projects.each do |project|
print '-' print '-'
next next
end end
if system("#{gitlab_shell_path}/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}")
if system("/home/git/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}")
print '.' print '.'
else else
print 'F' print 'F'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment