Skip to content

Commit 0501a42

Browse files
committed
build: use 7 digit edge hashes
1 parent 4f11d3c commit 0501a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export default class Package {
372372

373373
gitShortCommit () {
374374
const { stdout } = this.exec('git', 'rev-parse --short HEAD', true)
375-
return stdout
375+
return stdout.trim().substring(0, 7) // 7 to be consistent with github and nuxt3
376376
}
377377

378378
gitBranch () {

0 commit comments

Comments
 (0)