Commit 1012e965e2211295fe99fcd44053d3b68e712b0a

Authored by Jacob Vosmaer
1 parent 63f25c01

Fine-tune the sed REVISION hack

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/software/gitlab-core.rb
... ... @@ -30,7 +30,7 @@ dependency "postgresql"
30 30 source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git"
31 31  
32 32 build do
33   - command "sed -i 's/*REVISION*/REVISION = \"#{version_guid.split(':').last}\"/' config/initializers/2_app.rb"
  33 + command "sed -i 's/.*REVISION.*/REVISION = \"#{version_guid.split(':').last[0,10]}\"/' config/initializers/2_app.rb"
34 34 bundle "install --without mysql development test --path=#{install_dir}/embedded/service/gem"
35 35 command "mkdir -p #{install_dir}/embedded/service/gitlab-core"
36 36 command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-core/"
... ...