From 0b2f73eafa7553759a23644d701425df41726929 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Fri, 10 Oct 2025 14:57:34 -0700 Subject: [PATCH] git might not be available --- src/config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 51b95e3..8826e9c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -13,5 +13,9 @@ export const NOSE_ROOT_BIN = join(NOSE_DIR, DEFAULT_PROJECT, "bin") export const NOSE_STARTED = Date.now() -export const GIT_SHA = (await $`git rev-parse --short HEAD`.text()).trim() - ; (globalThis as any).GIT_SHA = GIT_SHA \ No newline at end of file +let gitSHA = "" +try { gitSHA = (await $`git rev-parse --short HEAD`.text()).trim() } catch { } +export const GIT_SHA = gitSHA + ; (globalThis as any).GIT_SHA = GIT_SHA + +export const BUN_BIN = untilde("~/.bun/bin/bun") \ No newline at end of file