From 1173108deae9585cce5e57e53d208d105f8307b2 Mon Sep 17 00:00:00 2001 From: dzdidi Date: Wed, 24 Jan 2024 10:47:36 +0000 Subject: [PATCH] tmp commit Signed-off-by: dzdidi --- src/rpc.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rpc.js b/src/rpc.js index 39b67c3..2e25c51 100644 --- a/src/rpc.js +++ b/src/rpc.js @@ -43,6 +43,12 @@ module.exports = class RPC { } pushHandler (req) { + console.error('pushHandler is to be implemented') + const { url, repo, key, branch } = this.parsePushCommand(req) + console.error('url', url) + console.error('repo', repo) + console.error('key', key) + console.error('branch', branch) // TODO: check ACL // collect stdout to buffer and return it // const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: getCodePath(name) } }) @@ -51,6 +57,7 @@ module.exports = class RPC { } forcePushHandler (req) { + const { url, repo, key, branch } = this.parsePushCommand(req) // TODO: // check ACL // collect stdout to buffer and return it @@ -60,6 +67,7 @@ module.exports = class RPC { } deleteBranchHandler (req) { + const { url, repo, key, branch } = this.parsePushCommand(req) // TODO: // check ACL // collect stdout to buffer and return it