Skip to content

Commit 4a8e03b

Browse files
derrickstoleedscho
authored andcommitted
stash: use -f in checkout-index child process
Signed-off-by: Derrick Stolee <[email protected]>
1 parent e65e558 commit 4a8e03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/stash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static int restore_untracked(struct object_id *u_tree)
461461

462462
child_process_init(&cp);
463463
cp.git_cmd = 1;
464-
strvec_pushl(&cp.args, "checkout-index", "--all", NULL);
464+
strvec_pushl(&cp.args, "checkout-index", "--all", "-f", NULL);
465465
strvec_pushf(&cp.env, "GIT_INDEX_FILE=%s",
466466
stash_index_path.buf);
467467

0 commit comments

Comments
 (0)