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') }