Skip to content

Commit b4b7779

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

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

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

0 commit comments

Comments
 (0)