From 242f84b23dac09a470a77d73d6229db3ea7420e8 Mon Sep 17 00:00:00 2001 From: dzdidi Date: Wed, 24 Jan 2024 11:21:01 +0000 Subject: [PATCH] fix repo ref Signed-off-by: dzdidi --- src/rpc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc.js b/src/rpc.js index 0a255b1..aec6b7a 100755 --- a/src/rpc.js +++ b/src/rpc.js @@ -48,7 +48,7 @@ module.exports = class RPC { const { url, repo, key, branch } = this.parsePushCommand(req) // TODO: check ACL // collect stdout to buffer and return it - const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(name) } }) + const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(repo) } }) const outBuffer = new Buffer() const errBuffer = new Buffer() process.stdout.on('data', data => { @@ -70,7 +70,7 @@ module.exports = class RPC { // TODO: // check ACL // collect stdout to buffer and return it - // const process = spawn('git', ['reset', '--hard', url, branch], { env: { GIT_DIR: home.getCodePath(name) } }) + // const process = spawn('git', ['reset', '--hard', url, branch], { env: { GIT_DIR: home.getCodePath(repo) } }) console.error('req', req.toString()) console.error('forcePushHandler not implemented') } @@ -80,7 +80,7 @@ module.exports = class RPC { // TODO: // check ACL // collect stdout to buffer and return it - // const process = spawn('git', ['branch', '-d', branch], { env: { GIT_DIR: home.getCodePath(name) } }) + // const process = spawn('git', ['branch', '-d', branch], { env: { GIT_DIR: home.getCodePath(repo) } }) console.error('req', req.toString()) console.error('deleteBranchHandler not implemented') }