From d8484cf2e3d4e8fa4a964b189090fda822547bec Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 6 Feb 2014 16:48:43 +0100 Subject: [PATCH] Fix a bug in the 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 573becb..5da182f 100644 --- a/config/software/gitlab-core.rb +++ b/config/software/gitlab-core.rb @@ -35,7 +35,7 @@ build do # 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. - command "sed -i 's/.*REVISION.*/REVISION = \"#{version_guid.split(':').last[0,10]}\"/' config/initializers/2_app.rb" + command "sed -i \"s/.*REVISION.*/REVISION = '$(git log --pretty=format:'%h' -n 1)'/\" config/initializers/2_app.rb" bundle "install --without mysql development test --path=#{install_dir}/embedded/service/gem" -- libgit2 0.21.2