From 3b1153cf5be7d7979d35a115aa70cfaab9dd0a5b Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 16 May 2021 12:32:19 +0200 Subject: [PATCH] Fixed file creation --- webpack.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.ts b/webpack.config.ts index 314a6e1d..6d834895 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -46,9 +46,9 @@ const generateLocalBuildInfo = async (target: string): Promise = { const gitRevision = fs.readFileSync(path.join(__dirname, ".git", "HEAD")).toString(); if(gitRevision.indexOf("/") === -1) { - info.gitVersion = (gitRevision || "0000000").substr(0, 7); + info.gitVersion = (gitRevision || "00000000").substr(0, 8); } else { - info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substr(5).trim())).toString().substr(0, 7); + info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substr(5).trim())).toString().substr(0, 8); } try {