diff --git a/builtin/reset.c b/builtin/reset.c index a99de5ccb1e0b4..dcb79fb43a3a04 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -201,9 +201,8 @@ static int pathspec_needs_expanded_index(const struct pathspec *pathspec) * partial sparse directories, so we don't expand the index. */ if (path_in_cone_mode_sparse_checkout(item.original, &the_index) && - strspn(item.original + item.nowildcard_len, "*") == item.len - item.nowildcard_len) { + strspn(item.original + item.nowildcard_len, "*") == item.len - item.nowildcard_len) continue; - } for (pos = 0; pos < active_nr; pos++) { struct cache_entry *ce = active_cache[pos];