Message ID | 75ecb579a9f69c6dbe5d88ecec0d8e7e15c02efb.1653313727.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2d443389fddf1b9b50664669b55c701a53f12eb2 |
Headers | show |
Series | Sparse index: integrate with sparse-checkout | expand |
diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c index 5b054400bf3..1db51c3fd72 100644 --- a/builtin/sparse-checkout.c +++ b/builtin/sparse-checkout.c @@ -413,6 +413,9 @@ static int update_modes(int *cone_mode, int *sparse_index) /* force an index rewrite */ repo_read_index(the_repository); the_repository->index->updated_workdir = 1; + + if (!*sparse_index) + ensure_full_index(the_repository->index); } return 0;