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';