From f3d7adadd85661907545ee087c53d975e7597a29 Mon Sep 17 00:00:00 2001 From: dzdidi Date: Wed, 24 Jan 2024 11:54:03 +0000 Subject: [PATCH] debug inside bare Signed-off-by: dzdidi --- src/rpc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc.js b/src/rpc.js index 71ee96b..b7efc20 100755 --- a/src/rpc.js +++ b/src/rpc.js @@ -49,12 +49,13 @@ module.exports = class RPC { // TODO: check ACL // collect stdout to buffer and return it return await new Promise((resolve, reject) => { - const process = spawn('git', ['pull', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(repo) } }) + const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(repo) } }) //let outBuffer = Buffer.from('') // process.stdout.on('data', data => { // console.error('data:', JSON.stringify(data.toString())) // outBuffer = Buffer.concat([outBuffer, data]) // }) + console.error('ARGS:'. process.argv) let errBuffer = Buffer.from('') process.stderr.on('data', data => { errBuffer = Buffer.concat([errBuffer, data])