Skip to content

Commit

Permalink
fix: dev mode commit version display
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Sep 20, 2022
1 parent ff07425 commit 484eee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composer/packages/client/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 484eee1

Please sign in to comment.