Skip to content

Commit d161084

Browse files
committed
Fixes issue with stashing untracked files
1 parent b9c4468 commit d161084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export class Git {
348348
}
349349

350350
static stash_push(repoPath: string, pathspecs: string[], message?: string) {
351-
const params = [`stash`, `push`];
351+
const params = [`stash`, `push`, `-u`];
352352
if (message) {
353353
params.push(`-m`);
354354
params.push(message);
@@ -358,7 +358,7 @@ export class Git {
358358
}
359359

360360
static stash_save(repoPath: string, message?: string) {
361-
const params = [`stash`, `save`, `--include-untracked`];
361+
const params = [`stash`, `save`, `-u`];
362362
if (message) {
363363
params.push(message);
364364
}

0 commit comments

Comments
 (0)