From e66164cdb7df68a4d51a9d228e159f2e6ba4fcfb Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 09:14:55 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20git=20log=20format=20=E2=80=94=20pipe=20i?= =?UTF-8?q?n=20--format=20broken=20by=20remote=20shell,=20use=20space?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- updater/src/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/updater/src/index.js b/updater/src/index.js index 5c1c194..ac55d23 100644 --- a/updater/src/index.js +++ b/updater/src/index.js @@ -145,13 +145,15 @@ async function refreshStatus(repo) { } const [currentRaw, latest] = await Promise.all([ - sshGet(target.host, ['git', '-C', target.path, 'log', '-1', '--format=%H|%cI', 'HEAD']), + sshGet(target.host, ['git', '-C', target.path, 'log', '-1', '--format=%H %cI', 'HEAD']), getForgejoCommit(repo), ]) let currentSha = null, currentTimestamp = null - if (currentRaw && currentRaw.includes('|')) { - ;[currentSha, currentTimestamp] = currentRaw.split('|') + if (currentRaw && currentRaw.includes(' ')) { + const sp = currentRaw.indexOf(' ') + currentSha = currentRaw.slice(0, sp) + currentTimestamp = currentRaw.slice(sp + 1) } const deployed = !!currentSha const entry = {