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.
Jan Kassens committed
Jul 11, 2024 at 13:58 UTC
d09484c4aa746e444268ff8b53763f13f0e4e571
1 file changed
+1
-3
scripts/rollup/build-all-release-channels.js
+1
-3
@@ -19,9 +19,7 @@ const {
19
// Runs the build script for both stable and experimental release channels,
20
// by configuring an environment variable.
21
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);
23
24
let dateString = String(
25
spawnSync('git', [