summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-18 03:10:23 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-18 03:10:23 -0700
commit360bd899e8c2783bfdf49988875552bd0809fa12 (patch)
tree4c9ae7b4c689bfcbfbe400f9e488de2c51d09a95
parentbd4057910b117b8b44fd45b771ffd67316421ea9 (diff)
parentf210a5d8320365e27da8c75b054deedcb9cd8ea7 (diff)
downloadgitlab-ce-360bd899e8c2783bfdf49988875552bd0809fa12.tar.gz
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
-rw-r--r--db/fixtures/development/02_source_code.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/02_source_code.rb b/db/fixtures/development/02_source_code.rb
index a0a46c9e927..5ce5bcf4aba 100644
--- a/db/fixtures/development/02_source_code.rb
+++ b/db/fixtures/development/02_source_code.rb
@@ -1,3 +1,4 @@
+gitlab_shell_path = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
root = Gitlab.config.gitlab_shell.repos_path
projects = [
@@ -17,8 +18,7 @@ projects.each do |project|
print '-'
next
end
-
- if system("/home/git/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}")
+ if system("#{gitlab_shell_path}/gitlab-shell/bin/gitlab-projects import-project #{project[:path]} #{project[:git]}")
print '.'
else
print 'F'