Skip to content

Commit

Permalink
Fixes issue with stashing untracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 4, 2017
1 parent b9c4468 commit d161084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class Git {
}

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

static stash_save(repoPath: string, message?: string) {
const params = [`stash`, `save`, `--include-untracked`];
const params = [`stash`, `save`, `-u`];
if (message) {
params.push(message);
}
Expand Down

0 comments on commit d161084

Please sign in to comment.