Browse Source

Fixes issue with stashing untracked files

main
Eric Amodio 7 years ago
parent
commit
d161084ccd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/git.ts

+ 2
- 2
src/git/git.ts View File

@ -348,7 +348,7 @@ export class Git {
} }
static stash_push(repoPath: string, pathspecs: string[], message?: string) { static stash_push(repoPath: string, pathspecs: string[], message?: string) {
const params = [`stash`, `push`];
const params = [`stash`, `push`, `-u`];
if (message) { if (message) {
params.push(`-m`); params.push(`-m`);
params.push(message); params.push(message);
@ -358,7 +358,7 @@ export class Git {
} }
static stash_save(repoPath: string, message?: string) { static stash_save(repoPath: string, message?: string) {
const params = [`stash`, `save`, `--include-untracked`];
const params = [`stash`, `save`, `-u`];
if (message) { if (message) {
params.push(message); params.push(message);
} }

Loading…
Cancel
Save