Skip to content

Commit fde4622

Browse files
committed
Merge branch 'en/sparse-checkout'
Consistency fix to a topic already in 'master'. * en/sparse-checkout: unpack-trees: also allow get_progress() to work on a different index
2 parents 85d6e28 + 6c34239 commit fde4622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unpack-trees.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ static void load_gitmodules_file(struct index_state *index,
333333
}
334334
}
335335

336-
static struct progress *get_progress(struct unpack_trees_options *o)
336+
static struct progress *get_progress(struct unpack_trees_options *o,
337+
struct index_state *index)
337338
{
338339
unsigned cnt = 0, total = 0;
339-
struct index_state *index = &o->result;
340340

341341
if (!o->update || !o->verbose_update)
342342
return NULL;
@@ -415,7 +415,7 @@ static int check_updates(struct unpack_trees_options *o,
415415
if (o->clone)
416416
setup_collided_checkout_detection(&state, index);
417417

418-
progress = get_progress(o);
418+
progress = get_progress(o, index);
419419

420420
git_attr_set_direction(GIT_ATTR_CHECKOUT);
421421

0 commit comments

Comments
 (0)