From e7b31abecc99a8c19990b6b24ad14ee427bf6922 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 23 Jul 2022 06:59:05 -0300 Subject: don't steal outside git status lol --- src/upd8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index 4861139d..b433f96d 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -155,7 +155,7 @@ const CACHEBUST = 11; let COMMIT; try { - COMMIT = execSync('git log --format="%h %B" -n 1 HEAD').toString().trim(); + COMMIT = execSync('git log --format="%h %B" -n 1 HEAD', {cwd: __dirname}).toString().trim(); } catch (error) { COMMIT = '(failed to detect)'; } -- cgit 1.3.0-6-gf8a5