From 484eee1618a907c9a4ffa2e88311a40a7c22f43a Mon Sep 17 00:00:00 2001 From: Eugene Olonov Date: Tue, 20 Sep 2022 15:43:26 -0700 Subject: [PATCH] fix: dev mode commit version display --- Composer/packages/client/config/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Composer/packages/client/config/env.js b/Composer/packages/client/config/env.js index d2fbdabd8b..bc8c8f5803 100644 --- a/Composer/packages/client/config/env.js +++ b/Composer/packages/client/config/env.js @@ -42,7 +42,7 @@ dotenvFiles.forEach((dotenvFile) => { function getGitSha() { try { - const sha = execSync('git rev-parse --short', { stdio: ['ignore', 'ignore', 'ignore'] }); + const sha = execSync('git rev-parse --short HEAD').toString().replace(/\n/, ''); return sha; } catch (e) { return 'test';