mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
git.pullFrom
octopus commit
This commit is contained in:
@@ -751,19 +751,16 @@ export class Repository {
|
||||
}
|
||||
}
|
||||
|
||||
async pull(rebase?: boolean, remote?: string, name?: string): Promise<void> {
|
||||
async pull(rebase?: boolean, remote?: string, branch?: string): Promise<void> {
|
||||
const args = ['pull'];
|
||||
|
||||
if (rebase) {
|
||||
args.push('-r');
|
||||
}
|
||||
|
||||
if (remote) {
|
||||
if (remote && branch) {
|
||||
args.push(remote);
|
||||
}
|
||||
|
||||
if (name) {
|
||||
args.push(name);
|
||||
args.push(branch);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user