mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Updated setup to reference the gitlab-shell var
-Well really it uses what everything else uses -- would be nice to have this as a specific config var Change-Id: I08cef6080950bf40360b461abd2535ea8890410d
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user