mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user