From d161084ccd58e131e63f1f455325aaa3ca127e05 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 4 Sep 2017 03:04:05 -0400 Subject: [PATCH] Fixes issue with stashing untracked files --- src/git/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/git.ts b/src/git/git.ts index 05675f0..a79fa9d 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -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); @@ -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); }