diff --git a/config/software/gitlab-cookbooks.rb b/config/software/gitlab-cookbooks.rb index a0da475..f09f617 100644 --- a/config/software/gitlab-cookbooks.rb +++ b/config/software/gitlab-cookbooks.rb @@ -18,13 +18,11 @@ name "gitlab-cookbooks" -dependency "rsync" - always_build true source :path => File.expand_path("files/gitlab-cookbooks", Config.project_root) build do command "mkdir -p #{install_dir}/embedded/cookbooks" - command "#{install_dir}/embedded/bin/rsync --delete -a ./ #{install_dir}/embedded/cookbooks/" + sync ".", "#{install_dir}/embedded/cookbooks/" end diff --git a/config/software/gitlab-ctl.rb b/config/software/gitlab-ctl.rb index 9e17e0a..10cbd45 100644 --- a/config/software/gitlab-ctl.rb +++ b/config/software/gitlab-ctl.rb @@ -18,7 +18,6 @@ name "gitlab-ctl" -dependency "rsync" dependency "omnibus-ctl" source :path => File.expand_path("files/gitlab-ctl-commands", Config.project_root) @@ -65,5 +64,5 @@ done command "chmod 755 #{install_dir}/bin/gitlab-ctl" # additional omnibus-ctl commands - command "#{install_dir}/embedded/bin/rsync -a ./ #{install_dir}/embedded/service/omnibus-ctl/" + sync ".", "#{install_dir}/embedded/service/omnibus-ctl/" end diff --git a/config/software/gitlab-rails.rb b/config/software/gitlab-rails.rb index 31a1ef3..d580c42 100644 --- a/config/software/gitlab-rails.rb +++ b/config/software/gitlab-rails.rb @@ -26,7 +26,6 @@ dependency "bundler" dependency "libxml2" dependency "libxslt" dependency "curl" -dependency "rsync" dependency "libicu" dependency "postgresql" dependency "python-docutils" @@ -43,7 +42,7 @@ env = { build do # GitLab assumes it can extract the Git revision of the currently version - # from the Git repo the code lives in at boot. Because of our rsync later on, + # from the Git repo the code lives in at boot. Because of our sync later on, # this assumption does not hold. The sed command below patches the GitLab # source code to include the Git revision of the code included in the omnibus # build. @@ -88,7 +87,7 @@ build do command "cp db/schema.rb db/schema.rb.bundled" command "mkdir -p #{install_dir}/embedded/service/gitlab-rails" - command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/" + sync ".", "#{install_dir}/embedded/service/gitlab-rails/", exclude: %w{.git .gitignore} # Create a wrapper for the rake tasks of the Rails app erb :dest => "#{install_dir}/bin/gitlab-rake", diff --git a/config/software/gitlab-shell.rb b/config/software/gitlab-shell.rb index ca3c725..f6d5396 100644 --- a/config/software/gitlab-shell.rb +++ b/config/software/gitlab-shell.rb @@ -20,13 +20,12 @@ name "gitlab-shell" default_version "91753e937e729c0fedc9a5dd7ae52b85436b4971" # 1.9.7 dependency "ruby" -dependency "rsync" source :git => "https://gitlab.com/gitlab-org/gitlab-shell.git" build do command "mkdir -p #{install_dir}/embedded/service/gitlab-shell" - command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-shell/" + sync ".", "#{install_dir}/embedded/service/gitlab-shell/", exclude: %{.git .gitignore} block do env_shebang = "#!/usr/bin/env ruby" `grep -r -l '^#{env_shebang}' #{project_dir}`.split("\n").each do |ruby_script| -- libgit2 0.21.2