Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
diff --git a/viteconfig/main.ts b/viteconfig/main.ts
|
|
index ba6e2b6..d748d0a 100644
|
|
--- a/viteconfig/main.ts
|
|
+++ b/viteconfig/main.ts
|
|
@@ -3,7 +3,7 @@ import { defineConfig } from "vite";
|
|
|
|
let gitBranch: string = "";
|
|
try {
|
|
- gitBranch = execSync("git rev-parse --abbrev-ref HEAD").toString();
|
|
+ gitBranch = "???";
|
|
} catch (e) {
|
|
// User has likely downloaded from the YTM Desktop via the "Download ZIP".
|
|
// We don't plan to support this, but at least provide users with a bit of improved UX
|
|
diff --git a/viteconfig/renderer.ts b/viteconfig/renderer.ts
|
|
index b6531f6..321947a 100644
|
|
--- a/viteconfig/renderer.ts
|
|
+++ b/viteconfig/renderer.ts
|
|
@@ -6,8 +6,8 @@ import { execSync } from "node:child_process";
|
|
let gitBranch: string = "";
|
|
let gitCommitHash: string = "";
|
|
try {
|
|
- gitBranch = execSync("git rev-parse --abbrev-ref HEAD").toString();
|
|
- gitCommitHash = execSync("git rev-parse HEAD").toString();
|
|
+ gitBranch = "???";
|
|
+ gitCommitHash = execSync("cat .COMMIT").toString();
|
|
} catch (e) {
|
|
// User has likely downloaded from the YTM Desktop via the "Download ZIP".
|
|
// We don't plan to support this, but at least provide users with a bit of improved UX
|