Skip to content

Commit

Permalink
fixup! reset: make --mixed sparse-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
vdye committed Nov 29, 2021
1 parent 9c5c925 commit 1b3631a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1b3631a

Please sign in to comment.