Skip to content

Commit d6add4b

Browse files
committed
Default to empty string for build sha, if it's not present from any other sources
1 parent 4380bc9 commit d6add4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dev/build/lib/version_info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function getVersionInfo({ isRelease, versionQualifier, pkg }: Optio
3030

3131
const buildSha = fs.existsSync('.git')
3232
? (await execa('git', ['rev-parse', 'HEAD'])).stdout
33-
: process.env.GIT_COMMIT || process.env.BUILDKITE_COMMIT;
33+
: process.env.GIT_COMMIT || process.env.BUILDKITE_COMMIT || '';
3434

3535
return {
3636
buildSha,

0 commit comments

Comments
 (0)