Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 28 lines
1234567891011121314151617181920212223242526272829diff --git a/viteconfig/main.ts b/viteconfig/main.tsindex 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 UXdiff --git a/viteconfig/renderer.ts b/viteconfig/renderer.tsindex 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