make notice clearer

This commit is contained in:
Archeb
2024-07-15 18:19:16 +08:00
parent 9d649f16e7
commit 638a1c9ee1
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ import { execSync } from "child_process";
function getGitRevision() {
// get git revision and branch
try {
const revision = execSync("git rev-parse --short HEAD").toString().trim();
const branch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim();
const revision = execSync("git rev-parse --short HEAD", { stdio: "pipe" }).toString().trim();
const branch = execSync("git rev-parse --abbrev-ref HEAD", { stdio: "pipe" }).toString().trim();
return { revision, branch };
} catch (e) {
return { revision: "unknown", branch: "unknown" };