« get me outta code hell

don't steal outside git status lol - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-07-23 06:59:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-07-23 06:59:05 -0300
commite7b31abecc99a8c19990b6b24ad14ee427bf6922 (patch)
tree295d3a329024766e328cdebe44d4b551928d70df
parent0e76e3af12ed53f27f0be8d96770da840141a3f0 (diff)
don't steal outside git status lol
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
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)';
 }