Skip to content

Commit 449b6be

Browse files
derrickstoleedscho
authored andcommitted
stash: use -f in checkout-index child process
Signed-off-by: Derrick Stolee <stolee@gmail.com>
1 parent 96f3356 commit 449b6be

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
@@ -466,7 +466,7 @@ static int restore_untracked(struct object_id *u_tree)
466466

467467
child_process_init(&cp);
468468
cp.git_cmd = 1;
469-
strvec_pushl(&cp.args, "checkout-index", "--all", NULL);
469+
strvec_pushl(&cp.args, "checkout-index", "--all", "-f", NULL);
470470
strvec_pushf(&cp.env, "GIT_INDEX_FILE=%s",
471471
stash_index_path.buf);
472472

0 commit comments

Comments
 (0)