diff --git a/src/version.ts b/src/version.ts index 18ce2f6..662d68e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -8,10 +8,9 @@ export function samver(): string { date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), - date.getUTCSeconds(), ]; const displayTime = timestamp .map((_) => _.toString().padStart(2, '0')) .join(''); - return [displayTime, git.commitHash(true)].join('-'); + return [displayTime, git.commitHash(true).slice(0, 7)].join('-'); }