From 5e5886856726fc155daaa90c442f0c4b17a9a068 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 15 Oct 2023 14:22:00 -0400 Subject: [PATCH] fix git branch calculation --- esbuild.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 333a71e..1972e50 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -10,7 +10,7 @@ config(); const gitCommit = execSync('git rev-parse --short HEAD').toString().trim(); const gitCommitFull = execSync('git rev-parse HEAD').toString().trim(); const gitUrl = execSync('git remote get-url origin').toString().trim(); -const gitBranch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim(); +const gitBranch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim().replace(/[\\\/]/g, '-'); let workerName = 'fixtweet';