|
|
@ -55,6 +55,14 @@ export const gitProxy = { |
|
|
|
const { stdout, stderr } = await execAsync(`git fetch ${remote} ${branch}`, { cwd: path }); |
|
|
|
const { stdout, stderr } = await execAsync(`git fetch ${remote} ${branch}`, { cwd: path }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async commit(path: string, message: string) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await execAsync(`git commit -m ${message}`, { cwd: path }); |
|
|
|
|
|
|
|
const { stdout, stderr } = await execAsync(`git rev-parse HEAD`, { cwd: path }); |
|
|
|
|
|
|
|
return stdout; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
status: async (path: string) => { |
|
|
|
status: async (path: string) => { |
|
|
|
const result = await execAsync('git status --porcelain -uall', { cwd: path }) |
|
|
|
const result = await execAsync('git status --porcelain -uall', { cwd: path }) |
|
|
|