mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 14:14:22 +01:00
@@ -43,6 +43,12 @@ module.exports = class RPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pushHandler (req) {
|
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
|
// TODO: check ACL
|
||||||
// collect stdout to buffer and return it
|
// collect stdout to buffer and return it
|
||||||
// const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: getCodePath(name) } })
|
// const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: getCodePath(name) } })
|
||||||
@@ -51,6 +57,7 @@ module.exports = class RPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
forcePushHandler (req) {
|
forcePushHandler (req) {
|
||||||
|
const { url, repo, key, branch } = this.parsePushCommand(req)
|
||||||
// TODO:
|
// TODO:
|
||||||
// check ACL
|
// check ACL
|
||||||
// collect stdout to buffer and return it
|
// collect stdout to buffer and return it
|
||||||
@@ -60,6 +67,7 @@ module.exports = class RPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteBranchHandler (req) {
|
deleteBranchHandler (req) {
|
||||||
|
const { url, repo, key, branch } = this.parsePushCommand(req)
|
||||||
// TODO:
|
// TODO:
|
||||||
// check ACL
|
// check ACL
|
||||||
// collect stdout to buffer and return it
|
// collect stdout to buffer and return it
|
||||||
|
|||||||
Reference in New Issue
Block a user