Skip to content

Commit eaf5ec4

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

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

403403
child_process_init(&cp);
404404
cp.git_cmd = 1;
405-
strvec_pushl(&cp.args, "checkout-index", "--all", NULL);
405+
strvec_pushl(&cp.args, "checkout-index", "--all", "-f", NULL);
406406
strvec_pushf(&cp.env, "GIT_INDEX_FILE=%s",
407407
stash_index_path.buf);
408408

0 commit comments

Comments
 (0)