Skip to content

Commit c6dfe2c

Browse files
committed
Include 'deleted' files in sparse reapply
1 parent 2e07ab3 commit c6dfe2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/sparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ int git_sparse_checkout__reapply(git_repository *repo, git_sparse *sparse)
415415
/* Don't touch files that aren't current */
416416
if ((error = git_status_file(&status_flags, repo, entry->path)) < 0)
417417
goto done;
418-
if (status_flags != GIT_STATUS_CURRENT)
418+
if (status_flags != GIT_STATUS_CURRENT && status_flags != GIT_STATUS_WT_DELETED)
419419
continue;
420420

421421
if ((error = git_str_joinpath(&fullpath, repo->workdir, entry->path)) < 0)

0 commit comments

Comments
 (0)