mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
fixes #27367
This commit is contained in:
@@ -21,10 +21,6 @@ export interface IGit {
|
||||
version: string;
|
||||
}
|
||||
|
||||
export interface PushOptions {
|
||||
setUpstream?: boolean;
|
||||
}
|
||||
|
||||
export interface IFileStatus {
|
||||
x: string;
|
||||
y: string;
|
||||
@@ -762,10 +758,10 @@ export class Repository {
|
||||
}
|
||||
}
|
||||
|
||||
async push(remote?: string, name?: string, options?: PushOptions): Promise<void> {
|
||||
async push(remote?: string, name?: string, setUpstream: boolean = false): Promise<void> {
|
||||
const args = ['push'];
|
||||
|
||||
if (options && options.setUpstream) {
|
||||
if (setUpstream) {
|
||||
args.push('-u');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user