Selaa lähdekoodia

Ensures flags won't be overwritten

main
Eric Amodio 5 vuotta sitten
vanhempi
commit
d75ad6cd21
4 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. +1
    -1
      src/commands/git/fetch.ts
  2. +1
    -1
      src/commands/git/pull.ts
  3. +1
    -1
      src/commands/git/push.ts
  4. +2
    -2
      src/commands/git/stash.ts

+ 1
- 1
src/commands/git/fetch.ts Näytä tiedosto

@ -148,7 +148,7 @@ export class FetchGitCommand extends QuickCommandBase {
state.flags = selection[0].item;
} else {
state.flags = [];
state.flags = state.flags || [];
}
this.execute(state as State);

+ 1
- 1
src/commands/git/pull.ts Näytä tiedosto

@ -125,7 +125,7 @@ export class PullGitCommand extends QuickCommandBase {
state.flags = selection[0].item;
} else {
state.flags = [];
state.flags = state.flags || [];
}
this.execute(state as State);

+ 1
- 1
src/commands/git/push.ts Näytä tiedosto

@ -125,7 +125,7 @@ export class PushGitCommand extends QuickCommandBase {
state.flags = selection[0].item;
} else {
state.flags = [];
state.flags = state.flags || [];
}
this.execute(state as State);

+ 2
- 2
src/commands/git/stash.ts Näytä tiedosto

@ -358,7 +358,7 @@ export class StashGitCommand extends QuickCommandBase {
state.subcommand = selection[0].command;
state.flags = selection[0].item;
} else {
state.flags = [];
state.flags = state.flags || [];
}
void Container.git.stashApply(state.repo.path, state.stash!.stashName, state.subcommand === 'pop');
@ -521,7 +521,7 @@ export class StashGitCommand extends QuickCommandBase {
state.flags = selection[0].item;
} else {
state.flags = [];
state.flags = state.flags || [];
}
void Container.git.stashSave(state.repo.path, state.message, state.uris, {

Ladataan…
Peruuta
Tallenna