Skip to content

Commit abf4dce

Browse files
committed
Fix missing commit
Code overrides it with nothing. The date is also already injected.
1 parent 2ad2bbf commit abf4dce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ci/build/build-vscode.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ main() {
1313

1414
cd lib/vscode
1515

16-
# Add the commit, date, our name, links, and enable telemetry (this just makes
16+
# Set the commit Code will embed into the product.json. We need to do this
17+
# since Code tries to get the commit from the `.git` directory which will fail
18+
# as it is a submodule.
19+
export VSCODE_DISTRO_COMMIT=$(git rev-parse HEAD)
20+
21+
# Add the date, our name, links, and enable telemetry (this just makes
1722
# telemetry available; telemetry can still be disabled by flag or setting).
1823
# This needs to be done before building as Code will read this file and embed
1924
# it into the client-side code.
@@ -23,9 +28,7 @@ main() {
2328
cat << EOF
2429
{
2530
"enableTelemetry": true,
26-
"commit": "$(git rev-parse HEAD)",
2731
"quality": "stable",
28-
"date": $(jq -n 'now | todate'),
2932
"codeServerVersion": "$VERSION",
3033
"nameShort": "code-server",
3134
"nameLong": "code-server",

0 commit comments

Comments
 (0)