Skip to content

Commit cdb99b8

Browse files
committed
fixup! TO-DROP: bogus left-over from 'sparse-checkout: make 'clean' clear more files'
This is no longer needed. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fb57ea9 commit cdb99b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpack-trees.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ enum update_sparsity_result update_sparsity(struct unpack_trees_options *o,
21782178
index_state_init(&o->internal.result, o->src_index->repo);
21792179

21802180
/* Sanity checks */
2181-
if (o->index_only || o->skip_sparse_checkout)
2181+
if (!o->update || o->index_only || o->skip_sparse_checkout)
21822182
BUG("update_sparsity() is for reflecting sparsity patterns in working directory");
21832183
if (o->src_index != o->dst_index || o->fn)
21842184
BUG("update_sparsity() called wrong");

0 commit comments

Comments
 (0)