From cd5cadffce41eb9c7d99b54cc35cb6454115d289 Mon Sep 17 00:00:00 2001 From: Christoph Bartschat Date: Mon, 11 Nov 2024 14:48:11 -0800 Subject: [PATCH] [g8] sync fix onto 402a587876093a7745c8754292346c13c5c944fd --- src/libgit2/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)