diff --git a/src/libgit2/sparse.c b/src/libgit2/sparse.c index 83d0af8ff7d..27774a01edb 100644 --- a/src/libgit2/sparse.c +++ b/src/libgit2/sparse.c @@ -415,7 +415,7 @@ int git_sparse_checkout__reapply(git_repository *repo, git_sparse *sparse) /* Don't touch files that aren't current */ if ((error = git_status_file(&status_flags, repo, entry->path)) < 0) goto done; - if (status_flags != GIT_STATUS_CURRENT) + if (status_flags != GIT_STATUS_CURRENT && status_flags != GIT_STATUS_WT_DELETED) continue; if ((error = git_str_joinpath(&fullpath, repo->workdir, entry->path)) < 0)