change fetch to pull in bear

Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
dzdidi
2024-01-24 11:51:07 +00:00
parent 75864c073b
commit b838205f71
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ module.exports = class RPC {
// TODO: check ACL
// collect stdout to buffer and return it
return await new Promise((resolve, reject) => {
const process = spawn('git', ['fetch', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(repo) } })
const process = spawn('git', ['pull', url, `${branch}:${branch}`], { env: { GIT_DIR: home.getCodePath(repo) } })
//let outBuffer = Buffer.from('')
// process.stdout.on('data', data => {
// console.error('data:', JSON.stringify(data.toString()))