Skip to content

Commit d09484c

Browse files
authored
Use explicit git hash length in version string (#30318)
This avoids potential differences between Git versions. Having a guarantee unique hash isn't neccessary as it's just informational and we have the date in the version string as well.
1 parent a09950e commit d09484c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/rollup/build-all-release-channels.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const {
1919
// Runs the build script for both stable and experimental release channels,
2020
// by configuring an environment variable.
2121

22-
const sha = String(
23-
spawnSync('git', ['show', '-s', '--no-show-signature', '--format=%h']).stdout
24-
).trim();
22+
const sha = String(spawnSync('git', ['rev-parse', 'HEAD']).stdout).slice(0, 8);
2523

2624
let dateString = String(
2725
spawnSync('git', [

0 commit comments

Comments
 (0)