From 1012e965e2211295fe99fcd44053d3b68e712b0a Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 5 Feb 2014 18:14:35 +0100 Subject: [PATCH] Fine-tune the sed REVISION hack --- config/software/gitlab-core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/software/gitlab-core.rb b/config/software/gitlab-core.rb index b0cb61c..efa57a9 100644 --- a/config/software/gitlab-core.rb +++ b/config/software/gitlab-core.rb @@ -30,7 +30,7 @@ dependency "postgresql" source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git" build do - command "sed -i 's/*REVISION*/REVISION = \"#{version_guid.split(':').last}\"/' config/initializers/2_app.rb" + command "sed -i 's/.*REVISION.*/REVISION = \"#{version_guid.split(':').last[0,10]}\"/' config/initializers/2_app.rb" bundle "install --without mysql development test --path=#{install_dir}/embedded/service/gem" command "mkdir -p #{install_dir}/embedded/service/gitlab-core" command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-core/" -- libgit2 0.21.2