Fix crashes in runner.js and git command in server.js

This commit is contained in:
2025-12-29 10:54:59 +11:00
parent 4c888b0500
commit da6c67b72d
3 changed files with 21 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ app.use('/reports', express.static(path.join(__dirname, 'reports')));
// API Endpoint: Git Info
app.get("/api/git-info", (req, res) => {
exec('/usr/bin/git log -1 --format="%H|%cr"', (error, stdout, stderr) => {
exec('git log -1 --format="%H|%cr"', (error, stdout, stderr) => {
if (error) {
console.error("Error getting git info:", error);
console.error("Stderr:", stderr);