From 3adbd0a00e83bd21ce1ef54842fa4accc0277af6 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Wed, 25 May 2016 10:13:10 +0300 Subject: [PATCH] Story#120259603 - git uses right branch last commit message --- config/deploy-example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy-example.rb b/config/deploy-example.rb index 33bf49247..536775727 100644 --- a/config/deploy-example.rb +++ b/config/deploy-example.rb @@ -235,7 +235,7 @@ end desc 'Loads current commit hash' task load_commit_hash: :environment do queue! %( - echo "CURRENT_COMMIT_HASH = '$(git --git-dir #{deploy_to}/scm rev-parse --short HEAD)'" > \ + echo "CURRENT_COMMIT_HASH = '$(git --git-dir #{deploy_to}/scm rev-parse --short #{branch})'" > \ #{deploy_to}/shared/config/initializers/current_commit_hash.rb ) end