« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 4861139..b433f96 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)';
 }