Commit 360bd899e8c2783bfdf49988875552bd0809fa12

Authored by Dmitriy Zaporozhets
2 parents bd405791 f210a5d8

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
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
db/fixtures/development/02_source_code.rb
  1 +gitlab_shell_path = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
1 root = Gitlab.config.gitlab_shell.repos_path 2 root = Gitlab.config.gitlab_shell.repos_path
2 3
3 projects = [ 4 projects = [
@@ -17,8 +18,7 @@ projects.each do |project| @@ -17,8 +18,7 @@ projects.each do |project|
17 print '-' 18 print '-'
18 next 19 next
19 end 20 end
20 -  
21 - if system("/home/git/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}") 21 + if system("#{gitlab_shell_path}/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}")
22 print '.' 22 print '.'
23 else 23 else
24 print 'F' 24 print 'F'